From c850fb12b37e39a8d4aef579f8db3fe2d6f7e9ee Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 23 Jun 2024 09:04:26 +0200 Subject: [PATCH] Update to latest syntax file (#655) --- editors/code/syntaxes/Luau.tmLanguage.json | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/editors/code/syntaxes/Luau.tmLanguage.json b/editors/code/syntaxes/Luau.tmLanguage.json index bbc9c3cf..66fdcd6d 100644 --- a/editors/code/syntaxes/Luau.tmLanguage.json +++ b/editors/code/syntaxes/Luau.tmLanguage.json @@ -60,6 +60,9 @@ }, { "include": "#type_annotation" + }, + { + "include": "#attribute" } ], "repository": { @@ -150,6 +153,9 @@ { "include": "#comment" }, + { + "include": "#attribute" + }, { "begin": "(:)", "beginCaptures": { @@ -749,6 +755,22 @@ ] } ] + }, + "attribute": { + "patterns": [ + { + "name": "meta.attribute.luau", + "match": "(@)([a-zA-Z_][a-zA-Z0-9_]*)", + "captures": { + "1": { + "name": "keyword.operator.attribute.luau" + }, + "2": { + "name": "storage.type.attribute.luau" + } + } + } + ] } } } \ No newline at end of file