Skip to content

Commit 2d732ba

Browse files
committed
Merge branch 'release/0.9.0'
2 parents 75b9896 + 776b7bc commit 2d732ba

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# vim-javascript v0.8.0
1+
# vim-javascript v0.9.0
22

33
JavaScript bundle for vim, this bundle provides syntax and indent plugins.
44

@@ -51,13 +51,13 @@ Default Value: 0
5151

5252
## Contributing
5353

54-
This project uses the [git
55-
flow](http://nvie.com/posts/a-successful-git-branching-model/) model for
56-
development. There's [a handy git module for git
57-
flow](//github.com/nvie/gitflow). If you'd like to be added as a contributor,
58-
the price of admission is 1 pull request. Please follow the general code style
59-
guides (read the code) and in your pull request explain the reason for the
60-
proposed change and how it is valuable.
54+
This project uses the [git
55+
flow](http://nvie.com/posts/a-successful-git-branching-model/) model for
56+
development. There's [a handy git module for git
57+
flow](//github.com/nvie/gitflow). If you'd like to be added as a contributor,
58+
the price of admission is 1 pull request. Please follow the general code style
59+
guides (read the code) and in your pull request explain the reason for the
60+
proposed change and how it is valuable.
6161

6262
## Bug report
6363

syntax/javascript.vim

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ syntax region jsRegexpString start=+\(\(\(return\|case\)\s\+\)\@<=\|\(\([)\]
9494
syntax match jsNumber /\<-\=\d\+L\=\>\|\<0[xX]\x\+\>/
9595
syntax keyword jsNumber Infinity
9696
syntax match jsFloat /\<-\=\%(\d\+\.\d\+\|\d\+\.\|\.\d\+\)\%([eE][+-]\=\d\+\)\=\>/
97-
syntax match jsObjectKey /\<[a-zA-Z_$][0-9a-zA-Z_$\-]*\(\s*:\)\@=/
97+
syntax match jsObjectKey /\<[a-zA-Z_$][0-9a-zA-Z_$]*\(\s*:\)\@=/ contains=jsFunctionKey
98+
syntax match jsFunctionKey /\<[a-zA-Z_$][0-9a-zA-Z_$]*\(\s*:\s*function\s*\)\@=/ contained
9899

99100
"" JavaScript Prototype
100101
syntax keyword jsPrototype prototype
@@ -180,8 +181,8 @@ endif "DOM/HTML/CSS
180181

181182

182183
"" Code blocks
183-
syntax cluster jsExpression contains=jsComment,jsLineComment,jsDocComment,jsStringD,jsStringS,jsRegexpString,jsNumber,jsFloat,jsThis,jsOperator,jsBooleanTrue,jsBooleanFalse,jsNull,jsFunction,jsGlobalObjects,jsExceptions,jsFutureKeys,jsDomErrNo,jsDomNodeConsts,jsHtmlEvents,jsDotNotation,jsBracket,jsParen,jsBlock,jsFuncCall,jsUndefined,jsNan,jsKeyword,jsStorageClass,jsPrototype,jsBuiltins
184-
syntax cluster jsAll contains=@jsExpression,jsLabel,jsConditional,jsRepeat,jsReturn,jsStatement,jsTernaryIf,jsNoise,jsException
184+
syntax cluster jsExpression contains=jsComment,jsLineComment,jsDocComment,jsStringD,jsStringS,jsRegexpString,jsNumber,jsFloat,jsThis,jsOperator,jsBooleanTrue,jsBooleanFalse,jsNull,jsFunction,jsGlobalObjects,jsExceptions,jsFutureKeys,jsDomErrNo,jsDomNodeConsts,jsHtmlEvents,jsDotNotation,jsBracket,jsParen,jsBlock,jsFuncCall,jsUndefined,jsNan,jsKeyword,jsStorageClass,jsPrototype,jsBuiltins,jsNoise
185+
syntax cluster jsAll contains=@jsExpression,jsLabel,jsConditional,jsRepeat,jsReturn,jsStatement,jsTernaryIf,jsException
185186
syntax region jsBracket matchgroup=jsBrackets start="\[" end="\]" contains=@jsAll,jsParensErrB,jsParensErrC,jsBracket,jsParen,jsBlock,@htmlPreproc fold
186187
syntax region jsParen matchgroup=jsParens start="(" end=")" contains=@jsAll,jsParensErrA,jsParensErrC,jsParen,jsBracket,jsBlock,@htmlPreproc fold
187188
syntax region jsBlock matchgroup=jsBraces start="{" end="}" contains=@jsAll,jsParensErrA,jsParensErrB,jsParen,jsBracket,jsBlock,jsObjectKey,@htmlPreproc fold
@@ -207,7 +208,7 @@ else
207208
endif
208209

209210
syntax match jsFuncName contained /\<[a-zA-Z_$][0-9a-zA-Z_$]*/ nextgroup=jsFuncArgs skipwhite
210-
syntax region jsFuncArgs contained matchgroup=jsFuncParens start='(' end=')' contains=jsFuncArgCommas nextgroup=jsFuncBlock keepend skipwhite
211+
syntax region jsFuncArgs contained matchgroup=jsFuncParens start='(' end=')' contains=jsFuncArgCommas nextgroup=jsFuncBlock keepend skipwhite skipempty
211212
syntax match jsFuncArgCommas contained ','
212213
syntax keyword jsArgsObj arguments contained containedin=jsFuncBlock
213214

0 commit comments

Comments
 (0)