Skip to content

Commit 1004a7b

Browse files
committed
Add tests for #649
Fixes #649
1 parent 4407e8d commit 1004a7b

File tree

2 files changed

+66
-0
lines changed

2 files changed

+66
-0
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
original file
2+
-----------------------------------
3+
// @onlyOwnGrammar - As this has jsx
4+
<Test_Component
5+
a=''
6+
b_c='111'
7+
d=''
8+
/>
9+
-----------------------------------
10+
11+
Grammar: TypeScriptReact.tmLanguage
12+
-----------------------------------
13+
>// @onlyOwnGrammar - As this has jsx
14+
^^
15+
source.tsx comment.line.double-slash.tsx punctuation.definition.comment.tsx
16+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17+
source.tsx comment.line.double-slash.tsx
18+
><Test_Component
19+
^
20+
source.tsx meta.tag.tsx punctuation.definition.tag.begin.tsx
21+
^^^^^^^^^^^^^^
22+
source.tsx meta.tag.tsx entity.name.tag.tsx support.class.component.tsx
23+
> a=''
24+
^^^^
25+
source.tsx meta.tag.tsx meta.tag.attributes.tsx
26+
^
27+
source.tsx meta.tag.tsx meta.tag.attributes.tsx entity.other.attribute-name.tsx
28+
^
29+
source.tsx meta.tag.tsx meta.tag.attributes.tsx keyword.operator.assignment.tsx
30+
^
31+
source.tsx meta.tag.tsx meta.tag.attributes.tsx string.quoted.single.tsx punctuation.definition.string.begin.tsx
32+
^
33+
source.tsx meta.tag.tsx meta.tag.attributes.tsx string.quoted.single.tsx punctuation.definition.string.end.tsx
34+
> b_c='111'
35+
^^^^
36+
source.tsx meta.tag.tsx meta.tag.attributes.tsx
37+
^^^
38+
source.tsx meta.tag.tsx meta.tag.attributes.tsx entity.other.attribute-name.tsx
39+
^
40+
source.tsx meta.tag.tsx meta.tag.attributes.tsx keyword.operator.assignment.tsx
41+
^
42+
source.tsx meta.tag.tsx meta.tag.attributes.tsx string.quoted.single.tsx punctuation.definition.string.begin.tsx
43+
^^^
44+
source.tsx meta.tag.tsx meta.tag.attributes.tsx string.quoted.single.tsx
45+
^
46+
source.tsx meta.tag.tsx meta.tag.attributes.tsx string.quoted.single.tsx punctuation.definition.string.end.tsx
47+
> d=''
48+
^^^^
49+
source.tsx meta.tag.tsx meta.tag.attributes.tsx
50+
^
51+
source.tsx meta.tag.tsx meta.tag.attributes.tsx entity.other.attribute-name.tsx
52+
^
53+
source.tsx meta.tag.tsx meta.tag.attributes.tsx keyword.operator.assignment.tsx
54+
^
55+
source.tsx meta.tag.tsx meta.tag.attributes.tsx string.quoted.single.tsx punctuation.definition.string.begin.tsx
56+
^
57+
source.tsx meta.tag.tsx meta.tag.attributes.tsx string.quoted.single.tsx punctuation.definition.string.end.tsx
58+
>/>
59+
^^
60+
source.tsx meta.tag.tsx punctuation.definition.tag.end.tsx

tests/cases/Issues649.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// @onlyOwnGrammar - As this has jsx
2+
<Test_Component
3+
a=''
4+
b_c='111'
5+
d=''
6+
/>

0 commit comments

Comments
 (0)