aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-03-03 11:00:11 +0100
committerGitHub <noreply@github.com>2024-03-03 11:00:11 +0100
commit99ddf573531c4dbe53f743ecbc1595af5eb1d32f (patch)
treebb70e8d72e309554c50aee3807c51f2a0433cbfe /tests
parentci: teach bot about conventional commits (diff)
downloadnvim-treesitter-99ddf573531c4dbe53f743ecbc1595af5eb1d32f.tar
nvim-treesitter-99ddf573531c4dbe53f743ecbc1595af5eb1d32f.tar.gz
nvim-treesitter-99ddf573531c4dbe53f743ecbc1595af5eb1d32f.tar.bz2
nvim-treesitter-99ddf573531c4dbe53f743ecbc1595af5eb1d32f.tar.lz
nvim-treesitter-99ddf573531c4dbe53f743ecbc1595af5eb1d32f.tar.xz
nvim-treesitter-99ddf573531c4dbe53f743ecbc1595af5eb1d32f.tar.zst
nvim-treesitter-99ddf573531c4dbe53f743ecbc1595af5eb1d32f.zip
feat(highlights)!: enforce documented captures (#6232)
Problem: Allowing undocumented "secret" (sub)captures makes it harder to write comprehensive colorschemes and catch inconsistent captures. Solution: Only allow captures listed in CONTRIBUTING.md. Add useful (cross-language) subcaptures and drop language-specific or too niche ones. Follow-up: Adding further `*.builtin` captures and changing queries to use them. Language-specific subcaptures should instead be added in user config or a custom language plugin.
Diffstat (limited to 'tests')
-rw-r--r--tests/query/highlights/markdown/test.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/query/highlights/markdown/test.md b/tests/query/highlights/markdown/test.md
index 87b28520e..01acfcc19 100644
--- a/tests/query/highlights/markdown/test.md
+++ b/tests/query/highlights/markdown/test.md
@@ -1,8 +1,8 @@
# H1
-<!-- <- @markup.heading.1.marker -->
+<!-- <- @markup.heading.1 -->
## H2
-<!-- <- @markup.heading.2.marker -->
+<!-- <- @markup.heading.2 -->
- Item 1
- Item 2