From 8e5f446544fd147277ed2e4208c7ea793cc846a7 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sat, 11 Mar 2023 11:46:12 +0100 Subject: Autocompletion for raw language tags --- src/syntax/lexer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/syntax') 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 == '-' } -- cgit v1.2.3