mirror of
https://github.com/jelera/vim-javascript-syntax.git
synced 2025-12-11 23:22:02 +08:00
Merge pull request #9 from dsjbirch/master
This fixes the issue we discussed about semicolons.
This commit is contained in:
@@ -23,7 +23,7 @@ if version < 600 && exists("javaScript_fold")
|
|||||||
unlet javaScript_fold
|
unlet javaScript_fold
|
||||||
endif
|
endif
|
||||||
|
|
||||||
"" dollar sigh is permittd anywhere in an identifier
|
"" dollar sign is permitted anywhere in an identifier
|
||||||
setlocal iskeyword+=$
|
setlocal iskeyword+=$
|
||||||
|
|
||||||
syntax sync fromstart
|
syntax sync fromstart
|
||||||
@@ -182,7 +182,7 @@ syntax region javaScriptFuncName contained matchgroup=javaScriptFuncName
|
|||||||
syn match javaScriptBraces "[{}\[\]]"
|
syn match javaScriptBraces "[{}\[\]]"
|
||||||
syn match javaScriptParens "[()]"
|
syn match javaScriptParens "[()]"
|
||||||
syn match javaScriptOpSymbols "=\{1,3}\|!==\|!=\|<\|>\|>=\|<=\|++\|+=\|--\|-="
|
syn match javaScriptOpSymbols "=\{1,3}\|!==\|!=\|<\|>\|>=\|<=\|++\|+=\|--\|-="
|
||||||
syn match javaScriptEndColons "[;,]$"
|
syn match javaScriptEndColons "[;,]"
|
||||||
syn match javaScriptLogicSymbols "\(&&\)\|\(||\)"
|
syn match javaScriptLogicSymbols "\(&&\)\|\(||\)"
|
||||||
|
|
||||||
" JavaScriptFold Function {{{
|
" JavaScriptFold Function {{{
|
||||||
|
|||||||
Reference in New Issue
Block a user