diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-03-11 11:46:12 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-03-11 11:46:12 +0100 |
| commit | 8e5f446544fd147277ed2e4208c7ea793cc846a7 (patch) | |
| tree | f8b0143fb3845da6673ca1312f03ab53f0f28a50 /src/syntax | |
| parent | a9fdff244aef859449a76e5f762ee7c343a8ddcc (diff) | |
Autocompletion for raw language tags
Diffstat (limited to 'src/syntax')
| -rw-r--r-- | src/syntax/lexer.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/syntax/lexer.rs b/src/syntax/lexer.rs index 31608d40..2d555917 100644 --- a/src/syntax/lexer.rs +++ b/src/syntax/lexer.rs @@ -644,13 +644,13 @@ pub fn is_ident(string: &str) -> bool { /// Whether a character can start an identifier. #[inline] -pub(super) fn is_id_start(c: char) -> bool { +pub fn is_id_start(c: char) -> bool { c.is_xid_start() || c == '_' } /// Whether a character can continue an identifier. #[inline] -pub(super) fn is_id_continue(c: char) -> bool { +pub fn is_id_continue(c: char) -> bool { c.is_xid_continue() || c == '_' || c == '-' } |
