Skip to content

Commit 7cfa706

Browse files
committed
commit generated files
1 parent 2ad84ef commit 7cfa706

File tree

3 files changed

+6440
-3287
lines changed

3 files changed

+6440
-3287
lines changed

src/grammar.json

+47-18
Original file line numberDiff line numberDiff line change
@@ -157,16 +157,16 @@
157157
{
158158
"type": "SYMBOL",
159159
"name": "argument"
160+
},
161+
{
162+
"type": "SYMBOL",
163+
"name": "keycode"
160164
}
161165
]
162166
},
163167
"_word_common": {
164168
"type": "CHOICE",
165169
"members": [
166-
{
167-
"type": "PATTERN",
168-
"value": "\\|(([+=][+=][+=][+=]+)|([+-][+-][+-][+-]+))\\|"
169-
},
170170
{
171171
"type": "PATTERN",
172172
"value": "[\\t ]'[\\t ]"
@@ -229,6 +229,10 @@
229229
"type": "PATTERN",
230230
"value": "\\{\\}"
231231
},
232+
{
233+
"type": "PATTERN",
234+
"value": "\\{\\{+[0-9]*"
235+
},
232236
{
233237
"type": "STRING",
234238
"value": "("
@@ -239,6 +243,43 @@
239243
}
240244
]
241245
},
246+
"keycode": {
247+
"type": "CHOICE",
248+
"members": [
249+
{
250+
"type": "PATTERN",
251+
"value": "<[-a-zA-Z0-9_]+>"
252+
},
253+
{
254+
"type": "PATTERN",
255+
"value": "<[SCMAD]-.>"
256+
},
257+
{
258+
"type": "PATTERN",
259+
"value": "CTRL-."
260+
},
261+
{
262+
"type": "PATTERN",
263+
"value": "CTRL-SHIFT-."
264+
},
265+
{
266+
"type": "PATTERN",
267+
"value": "CTRL-(Break|PageUp|PageDown|Insert|Del)"
268+
},
269+
{
270+
"type": "PATTERN",
271+
"value": "CTRL-\\{char\\}"
272+
},
273+
{
274+
"type": "PATTERN",
275+
"value": "META-."
276+
},
277+
{
278+
"type": "PATTERN",
279+
"value": "ALT-."
280+
}
281+
]
282+
},
242283
"uppercase_name": {
243284
"type": "SEQ",
244285
"members": [
@@ -590,20 +631,8 @@
590631
}
591632
},
592633
{
593-
"type": "CHOICE",
594-
"members": [
595-
{
596-
"type": "IMMEDIATE_TOKEN",
597-
"content": {
598-
"type": "PATTERN",
599-
"value": "~[\\t ]*\\n"
600-
}
601-
},
602-
{
603-
"type": "PATTERN",
604-
"value": "~[\\t ]*\\n"
605-
}
606-
]
634+
"type": "PATTERN",
635+
"value": "~\\n"
607636
}
608637
]
609638
},

src/node-types.json

+21
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@
8181
"type": "codespan",
8282
"named": true
8383
},
84+
{
85+
"type": "keycode",
86+
"named": true
87+
},
8488
{
8589
"type": "optionlink",
8690
"named": true
@@ -121,6 +125,10 @@
121125
"type": "codespan",
122126
"named": true
123127
},
128+
{
129+
"type": "keycode",
130+
"named": true
131+
},
124132
{
125133
"type": "optionlink",
126134
"named": true
@@ -160,6 +168,10 @@
160168
"type": "codespan",
161169
"named": true
162170
},
171+
{
172+
"type": "keycode",
173+
"named": true
174+
},
163175
{
164176
"type": "optionlink",
165177
"named": true
@@ -224,6 +236,11 @@
224236
]
225237
}
226238
},
239+
{
240+
"type": "keycode",
241+
"named": true,
242+
"fields": {}
243+
},
227244
{
228245
"type": "line",
229246
"named": true,
@@ -260,6 +277,10 @@
260277
"type": "h3",
261278
"named": true
262279
},
280+
{
281+
"type": "keycode",
282+
"named": true
283+
},
263284
{
264285
"type": "optionlink",
265286
"named": true

0 commit comments

Comments
 (0)