Skip to content

Commit

Permalink
Merge pull request #155 from amaanq/fix-attribute
Browse files Browse the repository at this point in the history
feat: add `attribute_specifier` to struct
  • Loading branch information
amaanq authored Jul 24, 2023
2 parents 475dc3b + 4b6e0bc commit fcd1230
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 fcd1230

Please sign in to comment.