mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-06 17:54:20 +01:00
Merge 'Handle single, double and unquoted strings in values clause' from Mikaël Francoeur
I'm not sure how much this will clash with @TcMits's parser rewrite, hopefully not too much. If it does and we eventually have to remove it, at least we'll have two new regression tests. Closes https://github.com/tursodatabase/turso/issues/2484 Closes #2499
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user