File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ all-features = true
2727url = " 2.1.1"
2828serde = { version = " 1.0.104" , features = [" derive" ] }
2929serde_json = " 1.0.48"
30- unicode-id = " 0.3 "
30+ unicode-id-start = " 1 "
3131if_chain = " 1.0.0"
3232scroll = { version = " 0.10.1" , features = [" derive" ], optional = true }
3333data-encoding = " 2.3.3"
Original file line number Diff line number Diff line change 1- use unicode_id:: UnicodeID ;
2-
31/// Returns true if `c` is a valid character for an identifier start.
42fn is_valid_start ( c : char ) -> bool {
53 c == '$' || c == '_' || c. is_ascii_alphabetic ( ) || {
64 if c. is_ascii ( ) {
75 false
86 } else {
9- UnicodeID :: is_id_start ( c)
7+ unicode_id_start :: is_id_start_unicode ( c)
108 }
119 }
1210}
@@ -21,7 +19,7 @@ fn is_valid_continue(c: char) -> bool {
2119 if c. is_ascii ( ) {
2220 false
2321 } else {
24- UnicodeID :: is_id_continue ( c)
22+ unicode_id_start :: is_id_continue_unicode ( c)
2523 }
2624 }
2725}
You can’t perform that action at this time.
0 commit comments