aboutsummaryrefslogtreecommitdiffstats
path: root/queries/c
diff options
context:
space:
mode:
authorPhạm Huy Hoàng <hoangtun0810@gmail.com>2024-01-20 18:47:56 +0900
committerGitHub <noreply@github.com>2024-01-20 18:47:56 +0900
commitd198a75e2c2e24885b05650515538d055d0c64e4 (patch)
tree8819156df4317d3aaa1af7338185e42d8dabe545 /queries/c
parentfix(markdown): remove @none from code fences (diff)
downloadnvim-treesitter-d198a75e2c2e24885b05650515538d055d0c64e4.tar
nvim-treesitter-d198a75e2c2e24885b05650515538d055d0c64e4.tar.gz
nvim-treesitter-d198a75e2c2e24885b05650515538d055d0c64e4.tar.bz2
nvim-treesitter-d198a75e2c2e24885b05650515538d055d0c64e4.tar.lz
nvim-treesitter-d198a75e2c2e24885b05650515538d055d0c64e4.tar.xz
nvim-treesitter-d198a75e2c2e24885b05650515538d055d0c64e4.tar.zst
nvim-treesitter-d198a75e2c2e24885b05650515538d055d0c64e4.zip
Fixup format (#5934)
* fix(format): newline between top-level field defs * fixup: newline between node and comment * fixup: optimize pattern
Diffstat (limited to 'queries/c')
-rw-r--r--queries/c/indents.scm1
1 files changed, 1 insertions, 0 deletions
diff --git a/queries/c/indents.scm b/queries/c/indents.scm
index 95d25fe1d..82660f20f 100644
--- a/queries/c/indents.scm
+++ b/queries/c/indents.scm
@@ -7,6 +7,7 @@
(initializer_list)
(init_declarator)
] @indent.begin
+
; With current indent logic, if we capture expression_statement with @indent.begin
; It will be affected by _parent_ node with error subnodes deep down the tree
; So narrow indent capture to check for error inside expression statement only,