@@ -22,60 +22,60 @@ describe('Tree-sitter HTML grammar', () => {
22
22
23
23
// Tag punctuation.
24
24
expect ( editor . scopeDescriptorForBufferPosition ( [ 0 , 0 ] ) . toString ( ) ) . toBe (
25
- '.text.html.basic .source.html .punctuation.definition.tag.begin '
25
+ '.text.html.basic .source.html .punctuation.definition.tag.html '
26
26
)
27
27
28
28
expect ( editor . scopeDescriptorForBufferPosition ( [ 0 , 15 ] ) . toString ( ) ) . toBe (
29
- '.text.html.basic .source.html .punctuation.definition.tag.end '
29
+ '.text.html.basic .source.html .punctuation.definition.tag.html '
30
30
)
31
31
32
32
expect ( editor . scopeDescriptorForBufferPosition ( [ 6 , 0 ] ) . toString ( ) ) . toBe (
33
- '.text.html.basic .source.html .punctuation.definition.tag.begin '
33
+ '.text.html.basic .source.html .punctuation.definition.tag.html '
34
34
)
35
35
36
36
expect ( editor . scopeDescriptorForBufferPosition ( [ 6 , 6 ] ) . toString ( ) ) . toBe (
37
- '.text.html.basic .source.html .punctuation.definition.tag.end '
37
+ '.text.html.basic .source.html .punctuation.definition.tag.html '
38
38
)
39
39
40
40
// Attribute-value pair punctuation.
41
41
expect ( editor . scopeDescriptorForBufferPosition ( [ 0 , 10 ] ) . toString ( ) ) . toBe (
42
- '.text.html.basic .source.html .punctuation.separator.key -value.html'
42
+ '.text.html.basic .source.html .punctuation.association.pair.attribute -value.html'
43
43
)
44
44
45
45
expect ( editor . scopeDescriptorForBufferPosition ( [ 2 , 18 ] ) . toString ( ) ) . toBe (
46
- '.text.html.basic .source.html .punctuation.definition.string.begin '
46
+ '.text.html.basic .source.html .string.quoted.attribute-value.html . punctuation.definition.string.html '
47
47
)
48
48
49
49
expect ( editor . scopeDescriptorForBufferPosition ( [ 2 , 24 ] ) . toString ( ) ) . toBe (
50
- '.text.html.basic .source.html .punctuation.definition.string.end '
50
+ '.text.html.basic .source.html .string.quoted.attribute-value.html . punctuation.definition.string.html '
51
51
)
52
52
53
53
// Ensure an attribute value delimited by single-quotes won't mark a
54
54
// double-quote in the value as punctuation.
55
55
expect ( editor . scopeDescriptorForBufferPosition ( [ 3 , 15 ] ) . toString ( ) ) . toBe (
56
- '.text.html.basic .source.html .punctuation.definition.string.begin '
56
+ '.text.html.basic .source.html .string.quoted.attribute-value.html . punctuation.definition.string.html '
57
57
)
58
58
59
59
expect ( editor . scopeDescriptorForBufferPosition ( [ 3 , 16 ] ) . toString ( ) ) . toBe (
60
- '.text.html.basic .source.html .string.html'
60
+ '.text.html.basic .source.html .string.quoted.attribute-value. html'
61
61
)
62
62
63
63
expect ( editor . scopeDescriptorForBufferPosition ( [ 3 , 17 ] ) . toString ( ) ) . toBe (
64
- '.text.html.basic .source.html .punctuation.definition.string.end '
64
+ '.text.html.basic .source.html .string.quoted.attribute-value.html . punctuation.definition.string.html '
65
65
)
66
66
67
67
// Ensure an attribute value delimited by double-quotes won't mark a
68
68
// single-quote in the value as punctuation.
69
69
expect ( editor . scopeDescriptorForBufferPosition ( [ 3 , 27 ] ) . toString ( ) ) . toBe (
70
- '.text.html.basic .source.html .punctuation.definition.string.begin '
70
+ '.text.html.basic .source.html .string.quoted.attribute-value.html . punctuation.definition.string.html '
71
71
)
72
72
73
73
expect ( editor . scopeDescriptorForBufferPosition ( [ 3 , 32 ] ) . toString ( ) ) . toBe (
74
- '.text.html.basic .source.html .string.html'
74
+ '.text.html.basic .source.html .string.quoted.attribute-value. html'
75
75
)
76
76
77
77
expect ( editor . scopeDescriptorForBufferPosition ( [ 3 , 66 ] ) . toString ( ) ) . toBe (
78
- '.text.html.basic .source.html .punctuation.definition.string.end '
78
+ '.text.html.basic .source.html .string.quoted.attribute-value.html . punctuation.definition.string.html '
79
79
)
80
80
} )
81
81
} )
0 commit comments