@@ -18,7 +18,7 @@ syntax region jsxTag
18
18
\ matchgroup= NONE
19
19
\ end = + \% (/\_ s* >\)\@ = +
20
20
\ contained
21
- \ contains= jsxOpenTag,jsxAttrib,jsxEscapeJs ,jsxSpreadOperator,jsComment,@j avascriptComments,javaScriptLineComment,javaScriptComment,typescriptLineComment,typescriptComment
21
+ \ contains= jsxOpenTag,jsxAttrib,jsxExpressionBlock ,jsxSpreadOperator,jsComment,@j avascriptComments,javaScriptLineComment,javaScriptComment,typescriptLineComment,typescriptComment
22
22
\ keepend
23
23
\ extend
24
24
\ skipwhite
@@ -37,7 +37,7 @@ syntax region jsxElement
37
37
\ start = + <\_s*\%(> \|\$ {\|\z (\< [- :._$A - Za- z0 - 9 ]\+\>\)\) +
38
38
\ end = + /\_ s* >+
39
39
\ end = + <\_s*/\_s*\z1\_s*> +
40
- \ contains= jsxElement,jsxTag,jsxEscapeJs ,jsxComment,jsxCloseTag,@S pell
40
+ \ contains= jsxElement,jsxTag,jsxExpressionBlock ,jsxComment,jsxCloseTag,@S pell
41
41
\ keepend
42
42
\ extend
43
43
\ contained
@@ -64,7 +64,7 @@ exe 'syntax region jsxOpenTag
64
64
65
65
" <tag key={this.props.key}>
66
66
" ~~~~~~~~~~~~~~~~
67
- syntax region jsxEscapeJs
67
+ syntax region jsxExpressionBlock
68
68
\ matchgroup= jsxBraces
69
69
\ start = + {+
70
70
\ end = + }+
@@ -82,7 +82,7 @@ syntax match jsxNamespace +:+ contained
82
82
83
83
" <tag id="sample">
84
84
" ~
85
- syntax match jsxEqual + =+ contained skipwhite skipempty nextgroup =jsxString,jsxEscapeJs ,jsxRegion
85
+ syntax match jsxEqual + =+ contained skipwhite skipempty nextgroup =jsxString,jsxExpressionBlock ,jsxRegion
86
86
87
87
" <tag />
88
88
" ~~
@@ -152,10 +152,10 @@ if s:enable_tagged_jsx
152
152
\ end = + `+
153
153
\ extend
154
154
\ contained
155
- \ contains= jsxElement,jsxEscapeJs
155
+ \ contains= jsxElement,jsxExpressionBlock
156
156
\ transparent
157
157
158
- syntax region jsxEscapeJs
158
+ syntax region jsxExpressionBlock
159
159
\ matchgroup= jsxBraces
160
160
\ start = + \$ {+
161
161
\ end = + }+
@@ -169,14 +169,14 @@ if s:enable_tagged_jsx
169
169
\ matchgroup= NONE
170
170
\ end = + }\@ 1 <=+
171
171
\ contained
172
- \ contains= jsxEscapeJs
172
+ \ contains= jsxExpressionBlock
173
173
\ skipwhite
174
174
\ skipempty
175
175
\ nextgroup= jsxAttrib,jsxSpreadOperator
176
176
177
177
syntax keyword jsxAttribKeyword class contained
178
178
179
- syntax match jsxSpreadOperator + \.\.\. + contained nextgroup =jsxEscapeJs skipwhite
179
+ syntax match jsxSpreadOperator + \.\.\. + contained nextgroup =jsxExpressionBlock skipwhite
180
180
181
181
syntax match jsxCloseTag + <//>+ contained
182
182
0 commit comments