@@ -15,11 +15,11 @@ describe('Tree-sitter Ruby grammar', () => {
1515 ` )
1616
1717 expect ( editor . scopeDescriptorForBufferPosition ( [ 0 , 1 ] ) . toString ( ) ) . toBe (
18- '.source.ruby .constant.other.symbol '
18+ '.source.ruby .string.immutable '
1919 )
2020
2121 expect ( editor . scopeDescriptorForBufferPosition ( [ 1 , 3 ] ) . toString ( ) ) . toBe (
22- '.source.ruby .constant.other.symbol '
22+ '.source.ruby .string.immutable '
2323 )
2424 } )
2525
@@ -37,26 +37,26 @@ describe('Tree-sitter Ruby grammar', () => {
3737 ` )
3838
3939 expect ( editor . scopeDescriptorForBufferPosition ( [ 0 , 0 ] ) . toString ( ) ) . toBe (
40- '.source.ruby .keyword.other.special- method'
40+ '.source.ruby .entity.function. method.support '
4141 )
4242 expect ( editor . scopeDescriptorForBufferPosition ( [ 1 , 0 ] ) . toString ( ) ) . toBe (
43- '.source.ruby .keyword.other.special- method'
43+ '.source.ruby .entity.function. method.support '
4444 )
4545 expect ( editor . scopeDescriptorForBufferPosition ( [ 2 , 0 ] ) . toString ( ) ) . toBe (
46- '.source.ruby .keyword.other.special- method'
46+ '.source.ruby .entity.function. method.support '
4747 )
4848 expect ( editor . scopeDescriptorForBufferPosition ( [ 4 , 0 ] ) . toString ( ) ) . toBe (
49- '.source.ruby .keyword.other.special- method'
49+ '.source.ruby .entity.function. method.support.call '
5050 )
5151 expect ( editor . scopeDescriptorForBufferPosition ( [ 5 , 0 ] ) . toString ( ) ) . toBe (
52- '.source.ruby .keyword.other.special- method'
52+ '.source.ruby .entity.function. method.support.call '
5353 )
5454 expect ( editor . scopeDescriptorForBufferPosition ( [ 6 , 0 ] ) . toString ( ) ) . toBe (
55- '.source.ruby .keyword.other.special- method'
55+ '.source.ruby .entity.function. method.support.call '
5656 )
5757 } )
5858
59- it ( 'tokenizes keyword predicates' , async ( ) => {
59+ it ( 'tokenizes predicates' , async ( ) => {
6060 const editor = await atom . workspace . open ( 'foo.rb' )
6161
6262 editor . setText ( dedent `
@@ -66,13 +66,13 @@ describe('Tree-sitter Ruby grammar', () => {
6666 ` )
6767
6868 expect ( editor . scopeDescriptorForBufferPosition ( [ 0 , 0 ] ) . toString ( ) ) . toBe (
69- '.source.ruby .keyword.control '
69+ '.source.ruby .keyword.operator.defined '
7070 )
7171 expect ( editor . scopeDescriptorForBufferPosition ( [ 1 , 0 ] ) . toString ( ) ) . toBe (
72- '.source.ruby .keyword.control '
72+ '.source.ruby .entity.function.method.support.kernel '
7373 )
7474 expect ( editor . scopeDescriptorForBufferPosition ( [ 2 , 0 ] ) . toString ( ) ) . toBe (
75- '.source.ruby .keyword.control '
75+ '.source.ruby .entity.function.method.support.kernel '
7676 )
7777 } )
7878
@@ -85,10 +85,10 @@ describe('Tree-sitter Ruby grammar', () => {
8585 ` )
8686
8787 expect ( editor . scopeDescriptorForBufferPosition ( [ 0 , 0 ] ) . toString ( ) ) . toBe (
88- '.source.ruby .keyword.control '
88+ '.source.ruby .entity.function.method.support.call '
8989 )
9090 expect ( editor . scopeDescriptorForBufferPosition ( [ 1 , 0 ] ) . toString ( ) ) . toBe (
91- '.source.ruby .keyword.control '
91+ '.source.ruby .keyword.storage.declaration '
9292 )
9393 } )
9494
@@ -101,11 +101,11 @@ describe('Tree-sitter Ruby grammar', () => {
101101 ` )
102102
103103 expect ( editor . scopeDescriptorForBufferPosition ( [ 0 , 0 ] ) . toString ( ) ) . toBe (
104- '.source.ruby .keyword.control '
104+ '.source.ruby .keyword.function.super '
105105 )
106106
107107 expect ( editor . scopeDescriptorForBufferPosition ( [ 1 , 0 ] ) . toString ( ) ) . toBe (
108- '.source.ruby .keyword.control '
108+ '.source.ruby .keyword.storage.modifier '
109109 )
110110 } )
111111
@@ -116,7 +116,7 @@ describe('Tree-sitter Ruby grammar', () => {
116116 ` )
117117
118118 expect ( editor . scopeDescriptorForBufferPosition ( [ 0 , 0 ] ) . toString ( ) ) . toBe (
119- '.source.ruby .variable'
119+ '.source.ruby .entity. variable'
120120 )
121121 } )
122122
@@ -127,7 +127,7 @@ describe('Tree-sitter Ruby grammar', () => {
127127 ` )
128128
129129 expect ( editor . scopeDescriptorForBufferPosition ( [ 0 , 0 ] ) . toString ( ) ) . not . toBe (
130- '.source.ruby .variable'
130+ '.source.ruby .entity. variable'
131131 )
132132 } )
133133} )
0 commit comments