Skip to content

Commit 430b528

Browse files
committed
Removed 'contained' constraint from 'this' keyword highlight
`this` can be used outside of any other block and thus needs to be highlighted there. ------------------------------------------------------------------------------ Actions: * Fix #610
1 parent 615f837 commit 430b528

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: syntax/javascript.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ exe 'syntax keyword jsReturn return contained '.(exists('g:javascript_conceal
9292
exe 'syntax keyword jsUndefined undefined '.(exists('g:javascript_conceal_undefined') ? 'conceal cchar='.g:javascript_conceal_undefined : '')
9393
exe 'syntax keyword jsNan NaN '.(exists('g:javascript_conceal_NaN') ? 'conceal cchar='.g:javascript_conceal_NaN : '')
9494
exe 'syntax keyword jsPrototype prototype '.(exists('g:javascript_conceal_prototype') ? 'conceal cchar='.g:javascript_conceal_prototype : '')
95-
exe 'syntax keyword jsThis this contained '.(exists('g:javascript_conceal_this') ? 'conceal cchar='.g:javascript_conceal_this : '')
95+
exe 'syntax keyword jsThis this '.(exists('g:javascript_conceal_this') ? 'conceal cchar='.g:javascript_conceal_this : '')
9696
exe 'syntax keyword jsSuper super contained '.(exists('g:javascript_conceal_super') ? 'conceal cchar='.g:javascript_conceal_super : '')
9797

9898
" Statement Keywords

0 commit comments

Comments
 (0)