Skip to content

Commit 8a2e041

Browse files
author
Quinn Strahl
committed
Change Blocks to Braces: jsBlocks and jsFuncBlocks
1 parent 17a0556 commit 8a2e041

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

syntax/javascript.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ syntax cluster jsExpression contains=jsComment,jsLineComment,jsDocComment,jsStri
186186
syntax cluster jsAll contains=@jsExpression,jsLabel,jsConditional,jsRepeat,jsBranch,jsReturn,jsStatement,jsTernaryIf,jsNoise,jsException
187187
syntax region jsBracket matchgroup=jsBrackets start="\[" end="\]" contains=@jsAll,jsParensErrB,jsParensErrC,jsBracket,jsParen,jsBlock,@htmlPreproc
188188
syntax region jsParen matchgroup=jsParens start="(" end=")" contains=@jsAll,jsParensErrA,jsParensErrC,jsParen,jsBracket,jsBlock,@htmlPreproc
189-
syntax region jsBlock matchgroup=jsBlocks start="{" end="}" contains=@jsAll,jsParensErrA,jsParensErrB,jsParen,jsBracket,jsBlock,@htmlPreproc
190-
syntax region jsFuncBlock matchgroup=jsFuncBlocks start="{" end="}" contains=@jsAll,jsParensErrA,jsParensErrB,jsParen,jsBracket,jsBlock,@htmlPreproc contained
189+
syntax region jsBlock matchgroup=jsBraces start="{" end="}" contains=@jsAll,jsParensErrA,jsParensErrB,jsParen,jsBracket,jsBlock,@htmlPreproc
190+
syntax region jsFuncBlock matchgroup=jsFuncBraces start="{" end="}" contains=@jsAll,jsParensErrA,jsParensErrB,jsParen,jsBracket,jsBlock,@htmlPreproc contained
191191
syntax region jsTernaryIf matchgroup=jsTernaryIfOperator start=+?+ end=+:+ contains=@jsExpression
192192

193193
"" catch errors caused by wrong parenthesis
@@ -277,7 +277,7 @@ if version >= 508 || !exists("did_javascript_syn_inits")
277277
HiLink jsNoise Noise
278278
HiLink jsBrackets Noise
279279
HiLink jsParens Noise
280-
HiLink jsBlocks Noise
280+
HiLink jsBraces Noise
281281
HiLink jsSpecial Special
282282
HiLink jsGlobalObjects Special
283283
HiLink jsExceptions Special

0 commit comments

Comments
 (0)