Skip to content

Commit

Permalink
feat: add attribute_specifier to struct
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq committed Jul 22, 2023
1 parent 475dc3b commit 4b6e0bc
Show file tree
Hide file tree
Showing 4 changed files with 58,699 additions and 58,460 deletions.
1 change: 1 addition & 0 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,7 @@ module.exports = grammar({

struct_specifier: $ => prec.right(seq(
'struct',
optional($.attribute_specifier),
optional($.ms_declspec_modifier),
choice(
seq(
Expand Down
12 changes: 12 additions & 0 deletions src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -3708,6 +3708,18 @@
"type": "STRING",
"value": "struct"
},
{
"type": "CHOICE",
"members": [
{
"type": "SYMBOL",
"name": "attribute_specifier"
},
{
"type": "BLANK"
}
]
},
{
"type": "CHOICE",
"members": [
Expand Down
Loading

0 comments on commit 4b6e0bc

Please sign in to comment.