File tree Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,23 @@ repository:
28
28
patterns :
29
29
- include : ' #jsx-tag-without-attributes-in-expression'
30
30
- include : ' #jsx-tag-in-expression'
31
- - include : ' #jsx-tag-invalid '
31
+ - include : ' #jsx-fragment '
32
32
33
33
# jsx tags
34
+ jsx-fragment :
35
+ name : meta.tag.fragment.tsx
36
+ begin : (<)\s*(>)
37
+ end : (</)\s*(>)
38
+ beginCaptures :
39
+ ' 1 ' : {name: punctuation.definition.tag.begin.tsx}
40
+ ' 2 ' : {name: punctuation.definition.tag.end.tsx}
41
+ endCaptures :
42
+ ' 1 ' : {name: punctuation.definition.tag.begin.tsx}
43
+ ' 2 ' : {name: punctuation.definition.tag.end.tsx}
44
+ contentName : meta.jsx.children.tsx
45
+ patterns :
46
+ - include : ' #jsx-children'
47
+
34
48
jsx-tag-without-attributes-in-expression :
35
49
begin : |-
36
50
(?x)
@@ -128,16 +142,12 @@ repository:
128
142
patterns :
129
143
- include : ' #jsx-children'
130
144
131
- jsx-tag-invalid :
132
- name : invalid.illegal.tag.incomplete.tsx
133
- match : <\s*>
134
-
135
145
# jsx children
136
146
jsx-children :
137
147
patterns :
138
148
- include : ' #jsx-tag-without-attributes'
139
149
- include : ' #jsx-child-tag'
140
- - include : ' #jsx-tag-invalid '
150
+ - include : ' #jsx-fragment '
141
151
- include : ' #jsx-evaluated-code'
142
152
- include : ' #jsx-entities'
143
153
You can’t perform that action at this time.
0 commit comments