mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-22 16:29:20 +08:00
commit
bff475061a
@ -303,15 +303,15 @@ fn is_identifier(s: &str) -> bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn is_identifier_start(c: char) -> bool {
|
fn is_identifier_start(c: char) -> bool {
|
||||||
('A'..='Z').contains(&c) || c == '_' || ('a'..='z').contains(&c) || c > '\x7F'
|
c.is_ascii_uppercase() || c == '_' || c.is_ascii_lowercase() || c > '\x7F'
|
||||||
}
|
}
|
||||||
|
|
||||||
fn is_identifier_continue(c: char) -> bool {
|
fn is_identifier_continue(c: char) -> bool {
|
||||||
c == '$'
|
c == '$'
|
||||||
|| ('0'..='9').contains(&c)
|
|| c.is_ascii_digit()
|
||||||
|| ('A'..='Z').contains(&c)
|
|| c.is_ascii_uppercase()
|
||||||
|| c == '_'
|
|| c == '_'
|
||||||
|| ('a'..='z').contains(&c)
|
|| c.is_ascii_lowercase()
|
||||||
|| c > '\x7F'
|
|| c > '\x7F'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user