mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-10 23:40:04 -04:00
tests: fix failed tests (#4901)
fix failed tests for tiger, t32 and wgsl
This commit is contained in:
parent
e54c8873ef
commit
9ec2a6bbda
6 changed files with 44 additions and 74 deletions
|
|
@ -6,7 +6,6 @@
|
|||
; Control flow statements
|
||||
(
|
||||
(if_block
|
||||
_*
|
||||
condition: (_)
|
||||
. (_) @_then) @indent.begin
|
||||
(#not-has-type? @_then block)
|
||||
|
|
@ -20,17 +19,16 @@
|
|||
(
|
||||
(else_block
|
||||
(if_block
|
||||
_*
|
||||
condition: (_)
|
||||
. (_) @_then)) @indent.branch
|
||||
(#not-has-type? @_then block)
|
||||
)
|
||||
|
||||
(while_block
|
||||
(command_expression)) @indent.begin
|
||||
(command_expression)) @indent.auto
|
||||
|
||||
(repeat_block
|
||||
(command_expression)) @indent.begin
|
||||
(command_expression)) @indent.auto
|
||||
|
||||
|
||||
(comment) @indent.ignore
|
||||
(comment) @indent.auto
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@
|
|||
(parameters ")" @indent.end)
|
||||
|
||||
(function_call) @indent.begin
|
||||
(function_call ")" @indent.end)
|
||||
(method_call) @indent.begin
|
||||
")" @indent.branch
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue