File tree Expand file tree Collapse file tree 4 files changed +1033
-975
lines changed Expand file tree Collapse file tree 4 files changed +1033
-975
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,26 @@ fn main() {
1212 (function_item (identifier) (parameters) (block
1313 (identifier))))
1414
15+ ============================================
16+ Raw identifiers
17+ ============================================
18+
19+ fn main() {
20+ (r#abc as r#Def).r#ghi;
21+ }
22+
23+ ---
24+
25+ (source_file
26+ (function_item
27+ (identifier)
28+ (parameters)
29+ (block
30+ (field_expression
31+ (parenthesized_expression
32+ (type_cast_expression (identifier) (type_identifier)))
33+ (field_identifier)))))
34+
1535============================================
1636Unary operator expressions
1737============================================
Original file line number Diff line number Diff line change @@ -1416,7 +1416,7 @@ module.exports = grammar({
14161416 $ . scoped_identifier
14171417 ) ,
14181418
1419- identifier : $ => / [ a - z A - Z α - ω Α - Ω µ _ ] [ a - z A - Z α - ω Α - Ω µ \d _ ] * / ,
1419+ identifier : $ => / ( r # ) ? [ a - z A - Z α - ω Α - Ω µ _ ] [ a - z A - Z α - ω Α - Ω µ \d _ ] * / ,
14201420
14211421 _reserved_identifier : $ => alias ( choice (
14221422 'default' ,
Original file line number Diff line number Diff line change 81768176 },
81778177 "identifier" : {
81788178 "type" : " PATTERN" ,
8179- "value" : " [a-zA-Zα-ωΑ-Ωµ_][a-zA-Zα-ωΑ-Ωµ\\ d_]*"
8179+ "value" : " (r#)? [a-zA-Zα-ωΑ-Ωµ_][a-zA-Zα-ωΑ-Ωµ\\ d_]*"
81808180 },
81818181 "_reserved_identifier" : {
81828182 "type" : " ALIAS" ,
You can’t perform that action at this time.
0 commit comments