aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2022-01-22 20:25:29 +0100
committerStephan Seitz <stephan.seitz@fau.de>2022-02-05 18:54:55 +0100
commitff96940767bb98e4cf7b54ffdd205069b9eb943f (patch)
tree9d43322ec01c7f56142e391ab6cff33442de175c
parentindents(lua): fix comment indentation (diff)
downloadnvim-treesitter-ff96940767bb98e4cf7b54ffdd205069b9eb943f.tar
nvim-treesitter-ff96940767bb98e4cf7b54ffdd205069b9eb943f.tar.gz
nvim-treesitter-ff96940767bb98e4cf7b54ffdd205069b9eb943f.tar.bz2
nvim-treesitter-ff96940767bb98e4cf7b54ffdd205069b9eb943f.tar.lz
nvim-treesitter-ff96940767bb98e4cf7b54ffdd205069b9eb943f.tar.xz
nvim-treesitter-ff96940767bb98e4cf7b54ffdd205069b9eb943f.tar.zst
nvim-treesitter-ff96940767bb98e4cf7b54ffdd205069b9eb943f.zip
docs: add `@zero_indent` to CONTRIBUTING.md
-rw-r--r--CONTRIBUTING.md1
-rw-r--r--queries/lua/indents.scm1
2 files changed, 1 insertions, 1 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 9ae975136..911340135 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -277,6 +277,7 @@ the node describing the language and `@content` to describe the injection region
@branch ; Dedent itself when matching this node
@ignore ; Do not indent in this node
@auto ; Behaves like 'autoindent' buffer option
+@zero_indent ; Sets this node at position 0 (no indent)
```
[Zulip]: nvim-treesitter.zulipchat.com
diff --git a/queries/lua/indents.scm b/queries/lua/indents.scm
index 6e2d60712..8c4432d56 100644
--- a/queries/lua/indents.scm
+++ b/queries/lua/indents.scm
@@ -37,6 +37,5 @@
] @branch
(comment) @auto
-;(comment) @ignore
(string) @auto