handle single, double and unquoted strings in values clause

This commit is contained in:
Mikaël Francoeur
2025-08-07 15:52:05 -04:00
parent 7b4703eba4
commit 2cf4e4fe96
6 changed files with 35 additions and 11 deletions

View File

@@ -1178,6 +1178,14 @@ impl Name {
_ => Name::Ident(s.to_string()),
}
}
/// Checks if a name represents a double-quoted string that should get fallback behavior
pub fn is_double_quoted(&self) -> bool {
if let Self::Quoted(ident) = self {
return ident.starts_with("\"");
}
false
}
}
struct QuotedIterator<'s>(Bytes<'s>, u8);