Skip to content

Commit aa449f2

Browse files
committed
Unhide class_default children
1 parent fba0417 commit aa449f2

File tree

4 files changed

+488462
-488476
lines changed

4 files changed

+488462
-488476
lines changed

grammar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1543,7 +1543,7 @@ module.exports = grammar({
15431543
),
15441544

15451545
// Standalone rule otherwise it gets aliased as '(default) (default)'
1546-
class_default: $ => whiteSpacedKeyword('class', 'default', false),
1546+
class_default: $ => whiteSpacedKeyword('class', 'default'),
15471547

15481548
case_value_range_list: $ => commaSep1(choice(
15491549
$._expression,

src/grammar.json

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15966,26 +15966,31 @@
1596615966
]
1596715967
},
1596815968
"class_default": {
15969-
"type": "CHOICE",
15970-
"members": [
15971-
{
15972-
"type": "SEQ",
15973-
"members": [
15974-
{
15975-
"type": "PATTERN",
15976-
"value": "[cC][lL][aA][sS][sS]"
15977-
},
15978-
{
15979-
"type": "PATTERN",
15980-
"value": "[dD][eE][fF][aA][uU][lL][tT]"
15981-
}
15982-
]
15983-
},
15984-
{
15985-
"type": "PATTERN",
15986-
"value": "[cC][lL][aA][sS][sS][dD][eE][fF][aA][uU][lL][tT]"
15987-
}
15988-
]
15969+
"type": "ALIAS",
15970+
"content": {
15971+
"type": "CHOICE",
15972+
"members": [
15973+
{
15974+
"type": "SEQ",
15975+
"members": [
15976+
{
15977+
"type": "PATTERN",
15978+
"value": "[cC][lL][aA][sS][sS]"
15979+
},
15980+
{
15981+
"type": "PATTERN",
15982+
"value": "[dD][eE][fF][aA][uU][lL][tT]"
15983+
}
15984+
]
15985+
},
15986+
{
15987+
"type": "PATTERN",
15988+
"value": "[cC][lL][aA][sS][sS][dD][eE][fF][aA][uU][lL][tT]"
15989+
}
15990+
]
15991+
},
15992+
"named": false,
15993+
"value": "classdefault"
1598915994
},
1599015995
"case_value_range_list": {
1599115996
"type": "SEQ",

src/node-types.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15311,6 +15311,10 @@
1531115311
"type": "class",
1531215312
"named": false
1531315313
},
15314+
{
15315+
"type": "classdefault",
15316+
"named": false
15317+
},
1531415318
{
1531515319
"type": "classis",
1531615320
"named": false

0 commit comments

Comments
 (0)