@@ -100,21 +100,12 @@ syntax match jsFloat /\<-\=\%(\d\+\.\d\+\|\d\+\.\|\.\d\+\)\%([eE][+-
100
100
syntax match jsObjectKey / \< [a-zA-Z_$][0-9a-zA-Z_$]*\(\s *:\)\@ =/ contains =jsFunctionKey contained
101
101
syntax match jsFunctionKey / \< [a-zA-Z_$][0-9a-zA-Z_$]*\(\s *:\s *function\s *\)\@ =/ contained
102
102
103
- if g: javascript_conceal == 1
104
- syntax keyword jsNull null conceal cchar =ø
105
- syntax keyword jsThis this conceal cchar =@
106
- syntax keyword jsReturn return conceal cchar =⇚
107
- syntax keyword jsUndefined undefined conceal cchar =¿
108
- syntax keyword jsNan NaN conceal cchar =ℕ
109
- syntax keyword jsPrototype prototype conceal cchar =¶
110
- else
111
- syntax keyword jsNull null
112
- syntax keyword jsThis this
113
- syntax keyword jsReturn return
114
- syntax keyword jsUndefined undefined
115
- syntax keyword jsNan NaN
116
- syntax keyword jsPrototype prototype
117
- endif
103
+ exe ' syntax keyword jsNull null ' .(exists (' g:javascript_conceal_null' ) ? ' conceal cchar=' .g: javascript_conceal_null : ' ' )
104
+ exe ' syntax keyword jsReturn return ' .(exists (' g:javascript_conceal_return' ) ? ' conceal cchar=' .g: javascript_conceal_return : ' ' )
105
+ exe ' syntax keyword jsUndefined undefined ' .(exists (' g:javascript_conceal_undefined' ) ? ' conceal cchar=' .g: javascript_conceal_undefined : ' ' )
106
+ exe ' syntax keyword jsNan NaN ' .(exists (' g:javascript_conceal_NaN' ) ? ' conceal cchar=' .g: javascript_conceal_NaN : ' ' )
107
+ exe ' syntax keyword jsPrototype prototype ' .(exists (' g:javascript_conceal_prototype' ) ? ' conceal cchar=' .g: javascript_conceal_prototype : ' ' )
108
+ exe ' syntax keyword jsThis this ' .(exists (' g:javascript_conceal_this' ) ? ' conceal cchar=' .g: javascript_conceal_this : ' ' )
118
109
119
110
" " Statement Keywords
120
111
syntax keyword jsStatement break continue with
@@ -203,11 +194,7 @@ if main_syntax == "javascript"
203
194
syntax sync match jsHighlight grouphere jsBlock / {/
204
195
endif
205
196
206
- if g: javascript_conceal == 1
207
- syntax match jsFunction / \< function\> / nextgroup =jsFuncName,jsFuncArgs skipwhite conceal cchar =ƒ
208
- else
209
- syntax match jsFunction / \< function\> / nextgroup =jsFuncName,jsFuncArgs skipwhite
210
- endif
197
+ exe ' syntax match jsFunction /\<function\>/ nextgroup=jsFuncName,jsFuncArgs skipwhite ' .(exists (' g:javascript_conceal_function' ) ? ' conceal cchar=' .g: javascript_conceal_function : ' ' )
211
198
212
199
syntax match jsFuncName contained / \< [a-zA-Z_$][0-9a-zA-Z_$]*/ nextgroup =jsFuncArgs skipwhite
213
200
syntax region jsFuncArgs contained matchgroup =jsFuncParens start =' (' end =' )' contains =jsFuncArgCommas,jsFuncArgRest nextgroup =jsFuncBlock keepend skipwhite skipempty
0 commit comments