Skip to content

Commit c850fb1

Browse files
Update to latest syntax file (#655)
1 parent 5170dc7 commit c850fb1

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

editors/code/syntaxes/Luau.tmLanguage.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@
6060
},
6161
{
6262
"include": "#type_annotation"
63+
},
64+
{
65+
"include": "#attribute"
6366
}
6467
],
6568
"repository": {
@@ -150,6 +153,9 @@
150153
{
151154
"include": "#comment"
152155
},
156+
{
157+
"include": "#attribute"
158+
},
153159
{
154160
"begin": "(:)",
155161
"beginCaptures": {
@@ -749,6 +755,22 @@
749755
]
750756
}
751757
]
758+
},
759+
"attribute": {
760+
"patterns": [
761+
{
762+
"name": "meta.attribute.luau",
763+
"match": "(@)([a-zA-Z_][a-zA-Z0-9_]*)",
764+
"captures": {
765+
"1": {
766+
"name": "keyword.operator.attribute.luau"
767+
},
768+
"2": {
769+
"name": "storage.type.attribute.luau"
770+
}
771+
}
772+
}
773+
]
752774
}
753775
}
754776
}

0 commit comments

Comments
 (0)