Skip to content

Commit a091dd4

Browse files
authored
Highlight static: & of: as blocks/flow (#91)
Highlights static blocks and of branches as scope and control flow syntax
1 parent b38beea commit a091dd4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

syntaxes/nim.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
},
149149
{
150150
"comment": "Keywords that affect program control flow or scope.",
151-
"match": "\\b(block|break|case|continue|do|elif|else|end|except|finally|for|if|raise|return|try|when|while|yield)\\b",
151+
"match": "\\b(block|break|case|continue|do|elif|else|end|except|finally|for|if|raise|return|try|when|while|yield|(static(?= *:))|of)\\b",
152152
"name": "keyword.control.nim"
153153
},
154154
{
@@ -163,7 +163,7 @@
163163
},
164164
{
165165
"comment": "Other keywords.",
166-
"match": "(\\b(addr|as|asm|atomic|bind|cast|const|converter|concept|defer|discard|distinct|div|enum|export|from|import|include|let|mod|mixin|object|of|ptr|ref|shl|shr|static|type|using|var|iterator|macro|func|method|proc|template)\\b)",
166+
"match": "(\\b(addr|as|asm|atomic|bind|cast|const|converter|concept|defer|discard|distinct|div|enum|export|from|import|include|let|mod|mixin|object|ptr|ref|shl|shr|static|type|using|var|iterator|macro|func|method|proc|template)\\b)",
167167
"name": "keyword.other.nim"
168168
},
169169
{

0 commit comments

Comments
 (0)