mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-21 12:50:09 -04:00
fix(tera): keyword captures, more specific function captures
This commit is contained in:
parent
d656711821
commit
600f6abecf
1 changed files with 6 additions and 6 deletions
|
|
@ -69,18 +69,18 @@
|
|||
"elif"
|
||||
"else"
|
||||
"endif"
|
||||
] @keyword.control.conditional
|
||||
] @keyword.conditional
|
||||
|
||||
[
|
||||
"for"
|
||||
"endfor"
|
||||
] @keyword.control.repeat
|
||||
] @keyword.repeat
|
||||
|
||||
[
|
||||
"include"
|
||||
"import"
|
||||
"extends"
|
||||
] @keyword.control.import
|
||||
] @keyword.import
|
||||
|
||||
[
|
||||
"in"
|
||||
|
|
@ -93,7 +93,7 @@
|
|||
[
|
||||
"break"
|
||||
"continue"
|
||||
] @keyword.control.return
|
||||
] @keyword.return
|
||||
|
||||
[
|
||||
"set"
|
||||
|
|
@ -120,7 +120,7 @@
|
|||
|
||||
(call_expression
|
||||
scope: (identifier)? @namespace
|
||||
name: (identifier) @function)
|
||||
name: (identifier) @function.call)
|
||||
|
||||
(call_expression
|
||||
name: (identifier) @function.builtin
|
||||
|
|
@ -129,7 +129,7 @@
|
|||
"range" "now" "throw" "get_random" "get_env"))
|
||||
|
||||
(test_expression
|
||||
test: (identifier) @function)
|
||||
test: (identifier) @function.call)
|
||||
|
||||
(test_expression
|
||||
test: (identifier) @function.builtin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue