mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 11:36:54 -04:00
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.
28 lines
1.1 KiB
Markdown
28 lines
1.1 KiB
Markdown
# H1
|
|
<!-- <- @markup.heading.1 -->
|
|
|
|
## H2
|
|
<!-- <- @markup.heading.2 -->
|
|
|
|
- Item 1
|
|
- Item 2
|
|
<!-- <- @markup.list -->
|
|
|
|
1. Item 1
|
|
2. Item 2
|
|
<!-- <- @markup.list -->
|
|
|
|
----
|
|
<!-- ^ @markup.link.label -->
|
|
<!-- ^ @markup.link.url -->
|
|
<!-- ^ @markup.link.label -->
|
|
<!--^ @markup.link -->
|
|
<!-- ^ @markup.link -->
|
|
<!-- ^ @markup.link -->
|
|
|
|
[link_text](#local_reference "link go brr...")
|
|
<!-- ^ @markup.link.label -->
|
|
<!-- ^ @markup.link.url -->
|
|
<!-- ^ @markup.link.label -->
|
|
<!-- <- @markup.link -->
|
|
<!-- ^ @markup.link -->
|