aboutsummaryrefslogtreecommitdiffstats
path: root/queries/fennel
diff options
context:
space:
mode:
authorPhạm Huy Hoàng <hoangtun0810@gmail.com>2024-03-21 20:44:35 +0900
committerChristian Clason <c.clason@uni-graz.at>2024-03-21 15:51:26 +0100
commit722617e6726c1508adadf83d531f54987c703be0 (patch)
tree951cdcf1cd2571647a3e5afdc11d6fae5e88b630 /queries/fennel
parentfeat(rust): improve indents (diff)
downloadnvim-treesitter-722617e6726c1508adadf83d531f54987c703be0.tar
nvim-treesitter-722617e6726c1508adadf83d531f54987c703be0.tar.gz
nvim-treesitter-722617e6726c1508adadf83d531f54987c703be0.tar.bz2
nvim-treesitter-722617e6726c1508adadf83d531f54987c703be0.tar.lz
nvim-treesitter-722617e6726c1508adadf83d531f54987c703be0.tar.xz
nvim-treesitter-722617e6726c1508adadf83d531f54987c703be0.tar.zst
nvim-treesitter-722617e6726c1508adadf83d531f54987c703be0.zip
refactor(format): drop extra indentation for field
Diffstat (limited to 'queries/fennel')
-rw-r--r--queries/fennel/folds.scm9
-rw-r--r--queries/fennel/injections.scm14
2 files changed, 10 insertions, 13 deletions
diff --git a/queries/fennel/folds.scm b/queries/fennel/folds.scm
index b4901d96a..ad65bf78c 100644
--- a/queries/fennel/folds.scm
+++ b/queries/fennel/folds.scm
@@ -27,9 +27,8 @@
(#any-of? @_fn "fn" "lambda" "λ" "hashfn")) @fold
(reader_macro
- macro:
- [
- "'"
- "`"
- ]
+ macro: [
+ "'"
+ "`"
+ ]
expression: (_) @fold)
diff --git a/queries/fennel/injections.scm b/queries/fennel/injections.scm
index cea50c4a3..b6b0bbcfe 100644
--- a/queries/fennel/injections.scm
+++ b/queries/fennel/injections.scm
@@ -42,14 +42,12 @@
.
(table
(table_pair
- key:
- (string
- (string_content) @_command
- (#eq? @_command "command"))
- value:
- (string
- (string_content) @injection.content
- (#set! injection.language "vim")))))
+ key: (string
+ (string_content) @_command
+ (#eq? @_command "command"))
+ value: (string
+ (string_content) @injection.content
+ (#set! injection.language "vim")))))
(list
.