File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change 104
104
105
105
; function calls
106
106
107
- ; neovim and tree-sitter-cli handle conflicts differently:
108
- ; in tree-sitter-cli the first match wins, while in neovim the last match does.
109
- ; to get the desired result for `raise` in both, we put it before the general function call
110
- ; queries (for the CLI), but also add a priority metadata rule (for neovim).
111
-
112
- (call_expression
113
- function: (value_identifier) @keyword.exception
114
- (#set! "priority" 105)
115
- (#eq? @keyword.exception "raise"))
116
-
117
107
(call_expression
118
108
function: (value_identifier_path
119
109
_
195
185
"catch"
196
186
] @keyword.exception
197
187
188
+ (call_expression
189
+ function: (value_identifier) @keyword.exception
190
+ (#eq? @keyword.exception "raise"))
198
191
199
192
[
200
193
"for"
You can’t perform that action at this time.
0 commit comments