Skip to content

Commit a957e1e

Browse files
committed
Merge pull request pangloss#149 from iammerrick/develop
feature(conceal): add prototype to the list of conceals
2 parents 53b5082 + a6f71af commit a957e1e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

syntax/javascript.vim

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,21 +97,20 @@ syntax match jsFloat /\<-\=\%(\d\+\.\d\+\|\d\+\.\|\.\d\+\)\%([eE][+-
9797
syntax match jsObjectKey /\<[a-zA-Z_$][0-9a-zA-Z_$]*\(\s*:\)\@=/ contains=jsFunctionKey
9898
syntax match jsFunctionKey /\<[a-zA-Z_$][0-9a-zA-Z_$]*\(\s*:\s*function\s*\)\@=/ contained
9999

100-
"" JavaScript Prototype
101-
syntax keyword jsPrototype prototype
102-
103100
if g:javascript_conceal == 1
104101
syntax keyword jsNull null conceal cchar=ø
105102
syntax keyword jsThis this conceal cchar=@
106103
syntax keyword jsReturn return conceal cchar=
107104
syntax keyword jsUndefined undefined conceal cchar=¿
108105
syntax keyword jsNan NaN conceal cchar=
106+
syntax keyword jsPrototype prototype conceal cchar=
109107
else
110108
syntax keyword jsNull null
111109
syntax keyword jsThis this
112110
syntax keyword jsReturn return
113111
syntax keyword jsUndefined undefined
114112
syntax keyword jsNan NaN
113+
syntax keyword jsPrototype prototype
115114
endif
116115

117116
"" Statement Keywords

0 commit comments

Comments
 (0)