@@ -22,60 +22,60 @@ describe('Tree-sitter HTML grammar', () => {
2222
2323 // Tag punctuation.
2424 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 '
2626 )
2727
2828 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 '
3030 )
3131
3232 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 '
3434 )
3535
3636 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 '
3838 )
3939
4040 // Attribute-value pair punctuation.
4141 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.delimiter.pair.attribute -value.html'
4343 )
4444
4545 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 '
4747 )
4848
4949 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 '
5151 )
5252
5353 // Ensure an attribute value delimited by single-quotes won't mark a
5454 // double-quote in the value as punctuation.
5555 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 '
5757 )
5858
5959 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'
6161 )
6262
6363 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 '
6565 )
6666
6767 // Ensure an attribute value delimited by double-quotes won't mark a
6868 // single-quote in the value as punctuation.
6969 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 '
7171 )
7272
7373 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'
7575 )
7676
7777 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 '
7979 )
8080 } )
8181} )
0 commit comments