Skip to content

Commit 508c1a3

Browse files
committed
Remove syntax sync clear
The optimizations it provides really doesn't seem to help much and usually just results in weird syntax matching errors unless you run `syntax sync fromstart`
1 parent 33eb9fe commit 508c1a3

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

syntax/javascript.vim

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -196,12 +196,6 @@ syntax match jsParensErrA contained "\]"
196196
syntax match jsParensErrB contained ")"
197197
syntax match jsParensErrC contained "}"
198198

199-
if main_syntax == "javascript"
200-
syntax sync clear
201-
syntax sync ccomment jsComment minlines=200
202-
syntax sync match jsHighlight grouphere jsBlock /{/
203-
endif
204-
205199
syntax match jsFuncArgDestructuring contained /\({\|}\|=\|:\|\[\|\]\)/ extend
206200
exe 'syntax match jsFunction /\<function\>/ nextgroup=jsGenerator,jsFuncName,jsFuncArgs skipwhite '.(exists('g:javascript_conceal_function') ? 'conceal cchar='.g:javascript_conceal_function : '')
207201
exe 'syntax match jsArrowFunction /=>/ skipwhite nextgroup=jsFuncBlock contains=jsFuncBraces '.(exists('g:javascript_conceal_arrow_function') ? 'conceal cchar='.g:javascript_conceal_arrow_function : '')

0 commit comments

Comments
 (0)