aboutsummaryrefslogtreecommitdiffstats
path: root/queries/squirrel
diff options
context:
space:
mode:
authorGeorge Harker <george@george-graphics.co.uk>2023-03-20 14:44:39 -0700
committerAmaan Qureshi <amaanq12@gmail.com>2023-03-24 13:07:53 -0400
commitcb568af5393241e5dbc9c19157c5df5e9ca9af2d (patch)
treee3a1848a3f1c7a03a4ecadd14f95022eaeb52f0f /queries/squirrel
parentsplit delimiter into open_delimiter and close_delimiter (diff)
downloadnvim-treesitter-cb568af5393241e5dbc9c19157c5df5e9ca9af2d.tar
nvim-treesitter-cb568af5393241e5dbc9c19157c5df5e9ca9af2d.tar.gz
nvim-treesitter-cb568af5393241e5dbc9c19157c5df5e9ca9af2d.tar.bz2
nvim-treesitter-cb568af5393241e5dbc9c19157c5df5e9ca9af2d.tar.lz
nvim-treesitter-cb568af5393241e5dbc9c19157c5df5e9ca9af2d.tar.xz
nvim-treesitter-cb568af5393241e5dbc9c19157c5df5e9ca9af2d.tar.zst
nvim-treesitter-cb568af5393241e5dbc9c19157c5df5e9ca9af2d.zip
use indent.X syntax for captures and properties of set directives
update CONTRIBUTING.md adjust indents for bass fix doc capture comment
Diffstat (limited to 'queries/squirrel')
-rw-r--r--queries/squirrel/indents.scm24
1 files changed, 12 insertions, 12 deletions
diff --git a/queries/squirrel/indents.scm b/queries/squirrel/indents.scm
index 6649b732b..0dbbab416 100644
--- a/queries/squirrel/indents.scm
+++ b/queries/squirrel/indents.scm
@@ -15,39 +15,39 @@
(foreach_statement)
; (try_statement)
(catch_statement)
-] @indent
+] @indent.begin
(
(if_statement)
- (ERROR "else") @indent
+ (ERROR "else") @indent.begin
)
(if_statement
- condition: (_) @indent)
+ condition: (_) @indent.begin)
(if_statement
consequence: (_)
- (else_statement) @indent)
+ (else_statement) @indent.begin)
(do_while_statement
"do"
- (_) @indent)
+ (_) @indent.begin)
(try_statement
- (_) @indent
- (catch_statement) @indent)
+ (_) @indent.begin
+ (catch_statement) @indent.begin)
-[ "{" "}" ] @branch
+[ "{" "}" ] @indent.branch
-[ "(" ")" ] @branch
+[ "(" ")" ] @indent.branch
-[ "[" "]" ] @branch
+[ "[" "]" ] @indent.branch
[
"}"
")"
"]"
-] @indent_end
+] @indent.end
[
(ERROR)
@@ -55,4 +55,4 @@
(string)
(verbatim_string)
-] @auto
+] @indent.auto