File tree Expand file tree Collapse file tree 1 file changed +3
-21
lines changed Expand file tree Collapse file tree 1 file changed +3
-21
lines changed Original file line number Diff line number Diff line change 38
38
(record_pattern
39
39
(value_identifier) @variable.member )
40
40
41
- ; highlight the right-hand side of a pipe operator as a function call
42
- ; this goes in this section to satisfy both the tree-sitter-cli and neovim.
43
- ; see comment below about `raise`
44
- (pipe_expression
45
- _
46
- [(value_identifier_path
47
- _
48
- (value_identifier) @function.call )
49
- (value_identifier) @function.call ]
50
- (#set! "priority" 105))
51
-
52
41
(value_identifier_path
53
42
(module_identifier)
54
43
(value_identifier) @variable.member )
115
104
116
105
; function calls
117
106
118
- ; neovim and tree-sitter-cli handle conflicts differently:
119
- ; in tree-sitter-cli the first match wins, while in neovim the last match does.
120
- ; to get the desired result for `raise` in both, we put it before the general function call
121
- ; queries (for the CLI), but also add a priority metadata rule (for neovim).
122
-
123
- (call_expression
124
- function: (value_identifier) @keyword.exception
125
- (#set! "priority" 105)
126
- (#eq? @keyword.exception "raise"))
127
-
128
107
(call_expression
129
108
function: (value_identifier_path
130
109
_
206
185
"catch"
207
186
] @keyword.exception
208
187
188
+ (call_expression
189
+ function: (value_identifier) @keyword.exception
190
+ (#eq? @keyword.exception "raise"))
209
191
210
192
[
211
193
"for"
You can’t perform that action at this time.
0 commit comments