summaryrefslogtreecommitdiffstats
path: root/syntax/javascript.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2017-12-06 12:56:27 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2017-12-06 12:56:27 +0100
commitdce9e8dec5ef51730291c7bbff3e3997433eabbd (patch)
tree1ca7140cd4244dfdff3d8d58f936d9dc159c9d4e /syntax/javascript.vim
parent30c87b73deff05c7dd9590228c0615a3299f39ff (diff)
downloadvim-polyglot-dce9e8dec5ef51730291c7bbff3e3997433eabbd.tar.gz
vim-polyglot-dce9e8dec5ef51730291c7bbff3e3997433eabbd.zip
Update
Diffstat (limited to 'syntax/javascript.vim')
-rw-r--r--syntax/javascript.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/syntax/javascript.vim b/syntax/javascript.vim
index cd9e8531..34db7e29 100644
--- a/syntax/javascript.vim
+++ b/syntax/javascript.vim
@@ -74,7 +74,7 @@ syntax region jsRegexpString start=+\%(\%(\<return\|\<typeof\|\_[^)\]'"[:blan
syntax cluster jsRegexpSpecial contains=jsSpecial,jsRegexpBoundary,jsRegexpBackRef,jsRegexpQuantifier,jsRegexpOr,jsRegexpMod
" Objects
-syntax match jsObjectKey contained /\<\K\k*\ze\s*:/ contains=jsFunctionKey skipwhite skipempty nextgroup=jsObjectValue
+syntax match jsObjectKey contained /\<\k*\ze\s*:/ contains=jsFunctionKey skipwhite skipempty nextgroup=jsObjectValue
syntax match jsObjectColon contained /:/ skipwhite skipempty
syntax region jsObjectKeyString contained start=+\z(["']\)+ skip=+\\\%(\z1\|$\)+ end=+\z1\|$+ contains=jsSpecial,@Spell skipwhite skipempty nextgroup=jsObjectValue
syntax region jsObjectKeyComputed contained matchgroup=jsBrackets start=/\[/ end=/]/ contains=@jsExpression skipwhite skipempty nextgroup=jsObjectValue,jsFuncArgs extend