File tree 4 files changed +1033
-975
lines changed
4 files changed +1033
-975
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,26 @@ fn main() {
12
12
(function_item (identifier) (parameters) (block
13
13
(identifier))))
14
14
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
+
15
35
============================================
16
36
Unary operator expressions
17
37
============================================
Original file line number Diff line number Diff line change @@ -1416,7 +1416,7 @@ module.exports = grammar({
1416
1416
$ . scoped_identifier
1417
1417
) ,
1418
1418
1419
- identifier : $ => / [ a - z A - Z α - ω Α - Ω µ _ ] [ a - z A - Z α - ω Α - Ω µ \d _ ] * / ,
1419
+ identifier : $ => / ( r # ) ? [ a - z A - Z α - ω Α - Ω µ _ ] [ a - z A - Z α - ω Α - Ω µ \d _ ] * / ,
1420
1420
1421
1421
_reserved_identifier : $ => alias ( choice (
1422
1422
'default' ,
Original file line number Diff line number Diff line change 8176
8176
},
8177
8177
"identifier" : {
8178
8178
"type" : " PATTERN" ,
8179
- "value" : " [a-zA-Zα-ωΑ-Ωµ_][a-zA-Zα-ωΑ-Ωµ\\ d_]*"
8179
+ "value" : " (r#)? [a-zA-Zα-ωΑ-Ωµ_][a-zA-Zα-ωΑ-Ωµ\\ d_]*"
8180
8180
},
8181
8181
"_reserved_identifier" : {
8182
8182
"type" : " ALIAS" ,
You can’t perform that action at this time.
0 commit comments