File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed
Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ targets = ["x86_64-unknown-linux-gnu"]
2525features = [" span-locations" ]
2626
2727[dependencies ]
28- unicode-xid = " 0.2"
28+ unicode-xid = " 0.2.2 "
2929
3030[dev-dependencies ]
3131quote = { version = " 1.0" , default_features = false }
Original file line number Diff line number Diff line change @@ -666,18 +666,11 @@ impl Ident {
666666}
667667
668668pub ( crate ) fn is_ident_start ( c : char ) -> bool {
669- ( 'a' <= c && c <= 'z' )
670- || ( 'A' <= c && c <= 'Z' )
671- || c == '_'
672- || ( c > '\x7f' && UnicodeXID :: is_xid_start ( c) )
669+ c == '_' || UnicodeXID :: is_xid_start ( c)
673670}
674671
675672pub ( crate ) fn is_ident_continue ( c : char ) -> bool {
676- ( 'a' <= c && c <= 'z' )
677- || ( 'A' <= c && c <= 'Z' )
678- || c == '_'
679- || ( '0' <= c && c <= '9' )
680- || ( c > '\x7f' && UnicodeXID :: is_xid_continue ( c) )
673+ UnicodeXID :: is_xid_continue ( c)
681674}
682675
683676fn validate_ident ( string : & str ) {
You can’t perform that action at this time.
0 commit comments