File tree 4 files changed +26271
-25730
lines changed
4 files changed +26271
-25730
lines changed Original file line number Diff line number Diff line change @@ -111,11 +111,16 @@ module.exports = grammar({
111
111
field ( 'declaration' , $ . declaration ) ,
112
112
seq (
113
113
'default' ,
114
- field ( 'value' , $ . expression ) ,
115
- $ . _semicolon
114
+ choice (
115
+ field ( 'declaration' , $ . declaration ) ,
116
+ seq (
117
+ field ( 'value' , $ . expression ) ,
118
+ $ . _semicolon
119
+ )
120
+ )
116
121
)
117
122
)
118
- ) ,
123
+ )
119
124
) ,
120
125
121
126
export_clause : $ => seq (
Original file line number Diff line number Diff line change 131
131
"value" : " default"
132
132
},
133
133
{
134
- "type" : " FIELD" ,
135
- "name" : " value" ,
136
- "content" : {
137
- "type" : " SYMBOL" ,
138
- "name" : " expression"
139
- }
140
- },
141
- {
142
- "type" : " SYMBOL" ,
143
- "name" : " _semicolon"
134
+ "type" : " CHOICE" ,
135
+ "members" : [
136
+ {
137
+ "type" : " FIELD" ,
138
+ "name" : " declaration" ,
139
+ "content" : {
140
+ "type" : " SYMBOL" ,
141
+ "name" : " declaration"
142
+ }
143
+ },
144
+ {
145
+ "type" : " SEQ" ,
146
+ "members" : [
147
+ {
148
+ "type" : " FIELD" ,
149
+ "name" : " value" ,
150
+ "content" : {
151
+ "type" : " SYMBOL" ,
152
+ "name" : " expression"
153
+ }
154
+ },
155
+ {
156
+ "type" : " SYMBOL" ,
157
+ "name" : " _semicolon"
158
+ }
159
+ ]
160
+ }
161
+ ]
144
162
}
145
163
]
146
164
}
4806
4824
},
4807
4825
{
4808
4826
"type" : " PATTERN" ,
4809
- "value" : " [^*]*\\ *+([^/*][^*]*\\ *+)*"
4827
+ "value" : " [^*]*\\ *+([^\\ /*][^*]*\\ *+)*"
4810
4828
},
4811
4829
{
4812
4830
"type" : " STRING" ,
4970
4988
},
4971
4989
{
4972
4990
"type" : " PATTERN" ,
4973
- "value" : " [^/\\\\\\ [\\ n]"
4991
+ "value" : " [^\\ /\\\\\\ [\\ n]"
4974
4992
}
4975
4993
]
4976
4994
}
5480
5498
"members" : [
5481
5499
{
5482
5500
"type" : " PATTERN" ,
5483
- "value" : " [^\\ x00-\\ x1F\\ s0-9:;`\" '@#.,|^&<=>+\\ -*/\\\\ %?!~()\\ [\\ ]{}\\ uFEFF\\ u2060\\ u200B\\ u00A0]|\\\\ u[0-9a-fA-F]{4}|\\\\ u\\ {[0-9a-fA-F]+\\ }"
5501
+ "value" : " [^\\ x00-\\ x1F\\ s0-9:;`\" '@#.,|^&<=>+\\ -*\\ /\\\\ %?!~()\\ [\\ ]{}\\ uFEFF\\ u2060\\ u200B\\ u00A0]|\\\\ u[0-9a-fA-F]{4}|\\\\ u\\ {[0-9a-fA-F]+\\ }"
5484
5502
},
5485
5503
{
5486
5504
"type" : " REPEAT" ,
5487
5505
"content" : {
5488
5506
"type" : " PATTERN" ,
5489
- "value" : " [^\\ x00-\\ x1F\\ s:;`\" '@#.,|^&<=>+\\ -*/\\\\ %?!~()\\ [\\ ]{}\\ uFEFF\\ u2060\\ u200B\\ u00A0]|\\\\ u[0-9a-fA-F]{4}|\\\\ u\\ {[0-9a-fA-F]+\\ }"
5507
+ "value" : " [^\\ x00-\\ x1F\\ s:;`\" '@#.,|^&<=>+\\ -*\\ /\\\\ %?!~()\\ [\\ ]{}\\ uFEFF\\ u2060\\ u200B\\ u00A0]|\\\\ u[0-9a-fA-F]{4}|\\\\ u\\ {[0-9a-fA-F]+\\ }"
5490
5508
}
5491
5509
}
5492
5510
]
You can’t perform that action at this time.
0 commit comments