summaryrefslogtreecommitdiff
path: root/src/syntax
diff options
context:
space:
mode:
Diffstat (limited to 'src/syntax')
-rw-r--r--src/syntax/lexer.rs4
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 == '-'
}