mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -04:00
feat(t32): update queries from upstream (#6440)
Adds support for new node type `elif_block`.
This commit is contained in:
parent
2c6ab9a09c
commit
f22f024e78
4 changed files with 9 additions and 2 deletions
|
|
@ -687,7 +687,7 @@
|
||||||
"revision": "1af543a96d060b1f808982037bfc54cc02218edd"
|
"revision": "1af543a96d060b1f808982037bfc54cc02218edd"
|
||||||
},
|
},
|
||||||
"t32": {
|
"t32": {
|
||||||
"revision": "8487a14874f3e3138877655f303322d9e7222cec"
|
"revision": "6182836f4128725f1e74ce986840d7317021a015"
|
||||||
},
|
},
|
||||||
"tablegen": {
|
"tablegen": {
|
||||||
"revision": "300f6a490e71f895e644ed2deec6920860a2e107"
|
"revision": "300f6a490e71f895e644ed2deec6920860a2e107"
|
||||||
|
|
|
||||||
|
|
@ -208,6 +208,9 @@
|
||||||
(if_block
|
(if_block
|
||||||
command: (identifier) @keyword.conditional)
|
command: (identifier) @keyword.conditional)
|
||||||
|
|
||||||
|
(elif_block
|
||||||
|
command: (identifier) @keyword.conditional)
|
||||||
|
|
||||||
(else_block
|
(else_block
|
||||||
command: (identifier) @keyword.conditional)
|
command: (identifier) @keyword.conditional)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,8 @@
|
||||||
(if_block
|
(if_block
|
||||||
(block)) @indent.dedent
|
(block)) @indent.dedent
|
||||||
|
|
||||||
|
(elif_block) @indent.branch
|
||||||
|
|
||||||
(else_block) @indent.branch
|
(else_block) @indent.branch
|
||||||
|
|
||||||
(else_block
|
(else_block
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,9 @@ ELSE
|
||||||
IF !&pass
|
IF !&pass
|
||||||
GOTO fail
|
GOTO fail
|
||||||
; ^ @label
|
; ^ @label
|
||||||
ELSE
|
ELSE IF &debug
|
||||||
|
; ^ @keyword.conditional
|
||||||
|
; ^ @keyword.conditional
|
||||||
(
|
(
|
||||||
GOSUB start_debug
|
GOSUB start_debug
|
||||||
; ^ @function.call
|
; ^ @function.call
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue