Skip to content

Commit da614c1

Browse files
committed
jsDestructuringPropertyComputed did not have nextgroup properly defined.
1 parent 89fcb6b commit da614c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

syntax/javascript.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ syntax match jsDestructuringAssignment contained /\k\+\ze\s*:/ skipwhit
194194
syntax region jsDestructuringValue contained start=/=/ end=/[,}\]]\@=/ contains=@jsExpression extend
195195
syntax region jsDestructuringValueAssignment contained start=/:/ end=/[,}=]\@=/ contains=jsDestructuringPropertyValue,jsDestructuringBlock,jsNoise,jsDestructuringNoise skipwhite skipempty nextgroup=jsDestructuringValue extend
196196
syntax match jsDestructuringNoise contained /[,[\]]/
197-
syntax region jsDestructuringPropertyComputed contained matchgroup=jsBrackets start=/\[/ end=/]/ contains=@jsExpression skipwhite skipempty nextgroup=jsDestructuringValue,jsDestructuringNoise extend fold
197+
syntax region jsDestructuringPropertyComputed contained matchgroup=jsDestructuringBraces start=/\[/ end=/]/ contains=@jsExpression skipwhite skipempty nextgroup=jsDestructuringValue,jsDestructuringValueAssignment,jsDestructuringNoise extend fold
198198

199199
" Comments
200200
syntax keyword jsCommentTodo contained TODO FIXME XXX TBD

0 commit comments

Comments
 (0)