@@ -118,19 +118,28 @@ syntax region jsxEscapeJs
118118syntax cluster jsExpression add =jsxRegion
119119syntax cluster javascriptNoReserved add =jsxRegion
120120
121- highlight def link jsxTag Function
122- highlight def link jsxTagName Function
123- highlight def link jsxString String
124- highlight def link jsxNameSpace Function
125- highlight def link jsxComment Error
126- highlight def link jsxAttrib Type
127- highlight def link jsxEscapeJs jsxEscapeJs
128- highlight def link jsxCloseTag Identifier
129- highlight def link jsxCloseString Identifier
130-
131- highlight def link jsObjectKey Label
132- highlight def link jsArrowFuncArgs Type
133- highlight def link jsFuncArgs Type
121+ let s: vim_jsx_pretty_enable_jsx_highlight = get (g: , ' vim_jsx_pretty_enable_jsx_highlight' , 1 )
122+
123+ if s: vim_jsx_pretty_enable_jsx_highlight == 1
124+ highlight def link jsxTag Function
125+ highlight def link jsxTagName Function
126+ highlight def link jsxString String
127+ highlight def link jsxNameSpace Function
128+ highlight def link jsxComment Error
129+ highlight def link jsxAttrib Type
130+ highlight def link jsxEscapeJs jsxEscapeJs
131+ highlight def link jsxCloseTag Identifier
132+ highlight def link jsxCloseString Identifier
133+ endif
134+
135+ let s: vim_jsx_pretty_colorful_config = get (g: , ' vim_jsx_pretty_colorful_config' , 0 )
136+
137+ if s: vim_jsx_pretty_colorful_config == 1
138+ highlight def link jsObjectKey Label
139+ highlight def link jsArrowFuncArgs Type
140+ highlight def link jsFuncArgs Type
141+ endif
142+
134143
135144let b: current_syntax = ' javascript.jsx'
136145
0 commit comments