diff --git a/syntaxes/sway.tmLanguage.json b/syntaxes/sway.tmLanguage.json index 0fcaad1..22a5f0c 100644 --- a/syntaxes/sway.tmLanguage.json +++ b/syntaxes/sway.tmLanguage.json @@ -249,6 +249,33 @@ } } }, + { + "comment": "Type declaration without name", + "begin": "\\b(storage)", + "end": "[\\{\\(;]", + "beginCaptures": { + "1": { + "name": "storage.type.sway" + } + }, + "patterns": [ + { + "include": "#block_comment" + }, + { + "include": "#line_comment" + }, + { + "include": "#type_params" + }, + { + "include": "#core_types" + }, + { + "include": "#pub" + } + ] + }, { "comment": "Type declaration", "begin": "\\b(enum|struct|trait|abi)\\s+([a-zA-Z_][a-zA-Z0-9_]*)",