Skip to content

Commit

Permalink
Highlight static: & of: as blocks/flow (#91)
Browse files Browse the repository at this point in the history
Highlights static blocks and of branches as scope and control flow syntax
  • Loading branch information
morganholly authored Apr 26, 2022
1 parent b38beea commit a091dd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syntaxes/nim.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
},
{
"comment": "Keywords that affect program control flow or scope.",
"match": "\\b(block|break|case|continue|do|elif|else|end|except|finally|for|if|raise|return|try|when|while|yield)\\b",
"match": "\\b(block|break|case|continue|do|elif|else|end|except|finally|for|if|raise|return|try|when|while|yield|(static(?= *:))|of)\\b",
"name": "keyword.control.nim"
},
{
Expand All @@ -163,7 +163,7 @@
},
{
"comment": "Other keywords.",
"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)",
"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)",
"name": "keyword.other.nim"
},
{
Expand Down

0 comments on commit a091dd4

Please sign in to comment.