Skip to content

Commit

Permalink
Add storage to highlighted words (#50)
Browse files Browse the repository at this point in the history
* feat: add storage to highlighted words

* Revert "feat: add storage to highlighted words"

This reverts commit 6fac165.

* feat: add storage keyword to highlighted words

* fix: remove where branch
  • Loading branch information
nfurfaro authored and sdankel committed Apr 17, 2024
1 parent d6cec30 commit fcca2f0
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions syntaxes/sway.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -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_]*)",
Expand Down

0 comments on commit fcca2f0

Please sign in to comment.