Skip to content

Commit aa2fb90

Browse files
committed
Add section comments
1 parent 430b528 commit aa2fb90

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: syntax/javascript.vim

+3-1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ else
7474
endif
7575
syntax cluster jsRegexpSpecial contains=jsSpecial,jsRegexpBoundary,jsRegexpBackRef,jsRegexpQuantifier,jsRegexpOr,jsRegexpMod
7676

77+
" Objects
7778
syntax match jsObjectKey contained /\<[0-9a-zA-Z_$]*\>\(\s*:\)\@=/ contains=jsFunctionKey skipwhite skipempty nextgroup=jsObjectValue
7879
syntax match jsObjectColon contained /:/ skipwhite skipempty
7980
syntax region jsObjectKeyString contained start=+"+ skip=+\\\("\|$\)+ end=+"\|$+ contains=jsSpecial,@Spell skipwhite skipempty nextgroup=jsObjectValue
@@ -133,7 +134,7 @@ syntax keyword jsDomNodeConsts ELEMENT_NODE ATTRIBUTE_NODE TEXT_NODE CDATA_SECT
133134
" HTML events and internal variables
134135
syntax keyword jsHtmlEvents onblur onclick oncontextmenu ondblclick onfocus onkeydown onkeypress onkeyup onmousedown onmousemove onmouseout onmouseover onmouseup onresize
135136

136-
"" Code blocks
137+
" Code blocks
137138
syntax region jsBracket matchgroup=jsBrackets start=/\[/ end=/\]/ contains=@jsExpression extend fold
138139
syntax region jsParen matchgroup=jsParens start=/(/ end=/)/ contains=@jsAll extend fold
139140
syntax region jsParenIfElse contained matchgroup=jsParensIfElse start=/(/ end=/)/ contains=@jsAll skipwhite skipempty nextgroup=jsCommentMisc,jsIfElseBlock extend fold
@@ -171,6 +172,7 @@ syntax match jsArrowFuncArgs /([^()]*)\s*\(=>\)\@=/ contains=jsFuncArgs skipe
171172
exe 'syntax match jsFunction /\<function\>/ skipwhite skipempty nextgroup=jsGenerator,jsFuncName,jsFuncArgs skipwhite '.(exists('g:javascript_conceal_function') ? 'conceal cchar='.g:javascript_conceal_function : '')
172173
exe 'syntax match jsArrowFunction /=>/ skipwhite skipempty nextgroup=jsFuncBlock contains=jsFuncBraces '.(exists('g:javascript_conceal_arrow_function') ? 'conceal cchar='.g:javascript_conceal_arrow_function : '')
173174

175+
" Classes
174176
syntax keyword jsClassKeywords contained extends class
175177
syntax match jsClassNoise contained /\./
176178
syntax match jsClassMethodType contained /\%(get\|set\|static\|async\)\%( \k\+\)\@=/ skipwhite skipempty nextgroup=jsFuncName,jsClassProperty

0 commit comments

Comments
 (0)