@@ -15,11 +15,11 @@ describe('Tree-sitter Ruby grammar', () => {
15
15
` )
16
16
17
17
expect ( editor . scopeDescriptorForBufferPosition ( [ 0 , 1 ] ) . toString ( ) ) . toBe (
18
- '.source.ruby .constant.other.symbol '
18
+ '.source.ruby .string.immutable '
19
19
)
20
20
21
21
expect ( editor . scopeDescriptorForBufferPosition ( [ 1 , 3 ] ) . toString ( ) ) . toBe (
22
- '.source.ruby .constant.other.symbol '
22
+ '.source.ruby .string.immutable '
23
23
)
24
24
} )
25
25
@@ -37,26 +37,26 @@ describe('Tree-sitter Ruby grammar', () => {
37
37
` )
38
38
39
39
expect ( editor . scopeDescriptorForBufferPosition ( [ 0 , 0 ] ) . toString ( ) ) . toBe (
40
- '.source.ruby .keyword.other.special- method'
40
+ '.source.ruby .entity.function. method.support '
41
41
)
42
42
expect ( editor . scopeDescriptorForBufferPosition ( [ 1 , 0 ] ) . toString ( ) ) . toBe (
43
- '.source.ruby .keyword.other.special- method'
43
+ '.source.ruby .entity.function. method.support '
44
44
)
45
45
expect ( editor . scopeDescriptorForBufferPosition ( [ 2 , 0 ] ) . toString ( ) ) . toBe (
46
- '.source.ruby .keyword.other.special- method'
46
+ '.source.ruby .entity.function. method.support '
47
47
)
48
48
expect ( editor . scopeDescriptorForBufferPosition ( [ 4 , 0 ] ) . toString ( ) ) . toBe (
49
- '.source.ruby .keyword.other.special- method'
49
+ '.source.ruby .entity.function. method.support.call '
50
50
)
51
51
expect ( editor . scopeDescriptorForBufferPosition ( [ 5 , 0 ] ) . toString ( ) ) . toBe (
52
- '.source.ruby .keyword.other.special- method'
52
+ '.source.ruby .entity.function. method.support.call '
53
53
)
54
54
expect ( editor . scopeDescriptorForBufferPosition ( [ 6 , 0 ] ) . toString ( ) ) . toBe (
55
- '.source.ruby .keyword.other.special- method'
55
+ '.source.ruby .entity.function. method.support.call '
56
56
)
57
57
} )
58
58
59
- it ( 'tokenizes keyword predicates' , async ( ) => {
59
+ it ( 'tokenizes predicates' , async ( ) => {
60
60
const editor = await atom . workspace . open ( 'foo.rb' )
61
61
62
62
editor . setText ( dedent `
@@ -66,13 +66,13 @@ describe('Tree-sitter Ruby grammar', () => {
66
66
` )
67
67
68
68
expect ( editor . scopeDescriptorForBufferPosition ( [ 0 , 0 ] ) . toString ( ) ) . toBe (
69
- '.source.ruby .keyword.control '
69
+ '.source.ruby .keyword.operator.defined '
70
70
)
71
71
expect ( editor . scopeDescriptorForBufferPosition ( [ 1 , 0 ] ) . toString ( ) ) . toBe (
72
- '.source.ruby .keyword.control '
72
+ '.source.ruby .entity.function.method.support.kernel '
73
73
)
74
74
expect ( editor . scopeDescriptorForBufferPosition ( [ 2 , 0 ] ) . toString ( ) ) . toBe (
75
- '.source.ruby .keyword.control '
75
+ '.source.ruby .entity.function.method.support.kernel '
76
76
)
77
77
} )
78
78
@@ -85,10 +85,10 @@ describe('Tree-sitter Ruby grammar', () => {
85
85
` )
86
86
87
87
expect ( editor . scopeDescriptorForBufferPosition ( [ 0 , 0 ] ) . toString ( ) ) . toBe (
88
- '.source.ruby .keyword.control '
88
+ '.source.ruby .entity.function.method.support.call '
89
89
)
90
90
expect ( editor . scopeDescriptorForBufferPosition ( [ 1 , 0 ] ) . toString ( ) ) . toBe (
91
- '.source.ruby .keyword.control '
91
+ '.source.ruby .keyword.storage.declaration '
92
92
)
93
93
} )
94
94
@@ -101,11 +101,11 @@ describe('Tree-sitter Ruby grammar', () => {
101
101
` )
102
102
103
103
expect ( editor . scopeDescriptorForBufferPosition ( [ 0 , 0 ] ) . toString ( ) ) . toBe (
104
- '.source.ruby .keyword.control '
104
+ '.source.ruby .keyword.variable.super '
105
105
)
106
106
107
107
expect ( editor . scopeDescriptorForBufferPosition ( [ 1 , 0 ] ) . toString ( ) ) . toBe (
108
- '.source.ruby .keyword.control '
108
+ '.source.ruby .keyword.storage.modifier '
109
109
)
110
110
} )
111
111
@@ -116,7 +116,7 @@ describe('Tree-sitter Ruby grammar', () => {
116
116
` )
117
117
118
118
expect ( editor . scopeDescriptorForBufferPosition ( [ 0 , 0 ] ) . toString ( ) ) . toBe (
119
- '.source.ruby .variable'
119
+ '.source.ruby .entity. variable'
120
120
)
121
121
} )
122
122
@@ -127,7 +127,7 @@ describe('Tree-sitter Ruby grammar', () => {
127
127
` )
128
128
129
129
expect ( editor . scopeDescriptorForBufferPosition ( [ 0 , 0 ] ) . toString ( ) ) . not . toBe (
130
- '.source.ruby .variable'
130
+ '.source.ruby .entity. variable'
131
131
)
132
132
} )
133
133
} )
0 commit comments