File size: 1,182 Bytes
a4d3c7a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
diff --git a/tests/snippets/jsx/test_apostrophe_text.txt b/tests/snippets/jsx/test_apostrophe_text.txt
new file mode 100644
index 000000000..953214c2d
--- /dev/null
+++ b/tests/snippets/jsx/test_apostrophe_text.txt
@@ -0,0 +1,35 @@
+---input---
+const View = () => <div>I'm the Block view component!</div>;
+
+---tokens---
+'const'       Keyword.Declaration
+' '           Text.Whitespace
+'View'        Name.Other
+' '           Text.Whitespace
+'='           Operator
+' '           Text.Whitespace
+'('           Punctuation
+')'           Punctuation
+' '           Text.Whitespace
+'=>'          Punctuation
+' '           Text.Whitespace
+'<'           Punctuation
+'div'         Name.Tag
+'>'           Punctuation
+'I'           Name.Other
+"'"           Text
+'m'           Name.Other
+' '           Text.Whitespace
+'the'         Name.Other
+' '           Text.Whitespace
+'Block'       Name.Other
+' '           Text.Whitespace
+'view'        Name.Other
+' '           Text.Whitespace
+'component'   Name.Other
+'!'           Operator
+'</'          Punctuation
+'div'         Name.Tag
+'>'           Punctuation
+';'           Punctuation
+'\n'          Text.Whitespace