<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nvim-treesitter/tests/query/highlights/markdown, branch fix/lua</title>
<subtitle>[no description]</subtitle>
<id>http://git.sudomsg.com/mirror/nvim-treesitter/atom/tests/query/highlights/markdown?h=fix%2Flua</id>
<link rel='self' href='http://git.sudomsg.com/mirror/nvim-treesitter/atom/tests/query/highlights/markdown?h=fix%2Flua'/>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/'/>
<updated>2024-03-03T10:00:11Z</updated>
<entry>
<title>feat(highlights)!: enforce documented captures (#6232)</title>
<updated>2024-03-03T10:00:11Z</updated>
<author>
<name>Christian Clason</name>
<email>c.clason@uni-graz.at</email>
</author>
<published>2024-03-03T10:00:11Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=99ddf573531c4dbe53f743ecbc1595af5eb1d32f'/>
<id>urn:sha1:99ddf573531c4dbe53f743ecbc1595af5eb1d32f</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>feat!: align standard captures with upstream</title>
<updated>2024-01-19T15:58:37Z</updated>
<author>
<name>Christian Clason</name>
<email>c.clason@uni-graz.at</email>
</author>
<published>2023-12-24T09:00:20Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=1ae9b0e4558fe7868f8cda2db65239cfb14836d0'/>
<id>urn:sha1:1ae9b0e4558fe7868f8cda2db65239cfb14836d0</id>
<content type='text'>
Problem: Sharing highlight queries with upstream tree-sitter and
Helix is difficult.

Solution: Where reasonable, use capture names in tree-sitter's standard
list or Helix's Atom-style hierarchy.

Specifically:

* tree-sitter "standard capture names"
  (https://github.com/tree-sitter/tree-sitter/blob/3f44b896852eb7daaa6df4fb778c9bb52c70c815/highlight/src/lib.rs#L20-L72):

  - `@parameter` -&gt; `@variable.parameter`
  - `@field` -&gt; `@variable.member`
  - `@namespace` -&gt; `@module`
  - `@float` -&gt; `@number.float`
  - `@symbol` -&gt; `@string.special.symbol`
  - `@string.regex` -&gt; `@string.regexp`
  - `@text.*` -&gt; `@markup.*` (`strong`, `italic`, `link`, `strikethrough`; with exceptions; see below)
  - `@text.title` -&gt; `@markup.heading`
  - `@text.literal` -&gt; `@markup.raw`
  - `@text.reference` -&gt; `@markup.link`
  - `@text.uri` -&gt; `@markup.link.url` (in markup links)
  - `@string.special` -&gt; `@markup.link.label` (non-url links)
  - `@punctuation.special` -&gt; `@markup.list` (markdown lists only; move subitems from `@text.todo`)

* Helix captures
  (https://docs.helix-editor.com/master/themes.html#syntax-highlighting):

  - `@method` -&gt; `@function.method`
  - `@method.call` -&gt; `@function.method.call`
  - `@text.{todo,warning,note,danger}` -&gt; `@comment.{error,warning,hint,info,todo}`
  - `@text.diff.{add,delete,}` -&gt; `@diff.{plus,minus,delta}`
  - `@text.uri` -&gt; `@string.special.url` (outside markup)
  - `@preproc` -&gt; `@keyword.directive`
  - `@define` -&gt; `@keyword.directive`(`.define`?)
  - `@storageclass` -&gt; `@keyword.storage`
  - `@conditional` -&gt; `@keyword.conditional`
  - `@debug` -&gt; `@keyword.debug`
  - `@exception` -&gt; `@keyword.exception`
  - `@include` -&gt; `@keyword.import`
  - `@repeat` -&gt; `@keyword.repeat`

* cleanup

  - remove some redundant `@conceal` (but still allow it for conceal-only patterns)
  - remove obsolete `@error` (syntax linting is out of scope for this repo)
  - sort, cleanup capture list in `CONTRIBUTING.md`
</content>
</entry>
<entry>
<title>chore(tests): consistent captures</title>
<updated>2024-01-19T15:58:37Z</updated>
<author>
<name>Christian Clason</name>
<email>c.clason@uni-graz.at</email>
</author>
<published>2023-12-24T11:52:21Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=10dd49958c96f86c8247c715bd20a6681afc1d8b'/>
<id>urn:sha1:10dd49958c96f86c8247c715bd20a6681afc1d8b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>highlights(markup): distinguish heading level in queries</title>
<updated>2023-05-13T14:50:32Z</updated>
<author>
<name>Christian Clason</name>
<email>c.clason@uni-graz.at</email>
</author>
<published>2023-05-13T09:23:50Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=680807fa6a482c639119098bc48ca3831c66db13'/>
<id>urn:sha1:680807fa6a482c639119098bc48ca3831c66db13</id>
<content type='text'>
also add a few queries from Helix and remove controversial
code block conceal in Markdown
</content>
</entry>
<entry>
<title>feat!: remove obsolete `TS*` highlight groups</title>
<updated>2022-10-16T13:50:55Z</updated>
<author>
<name>Christian Clason</name>
<email>c.clason@uni-graz.at</email>
</author>
<published>2022-10-16T12:52:15Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=42ab95d5e11f247c6f0c8f5181b02e816caa4a4f'/>
<id>urn:sha1:42ab95d5e11f247c6f0c8f5181b02e816caa4a4f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ci: fix markdown tests</title>
<updated>2022-01-16T18:14:52Z</updated>
<author>
<name>Stephan Seitz</name>
<email>stephan.seitz@fau.de</email>
</author>
<published>2022-01-16T17:36:43Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=4cf688ee681bbe9a35651732b2d2281a01c40066'/>
<id>urn:sha1:4cf688ee681bbe9a35651732b2d2281a01c40066</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix(ci): make highlight test working with markdown</title>
<updated>2022-01-16T16:16:54Z</updated>
<author>
<name>Stephan Seitz</name>
<email>stephan.seitz@fau.de</email>
</author>
<published>2022-01-07T19:04:21Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=dada29a1e5ab458f3493e9e1175fe29a3aa341fb'/>
<id>urn:sha1:dada29a1e5ab458f3493e9e1175fe29a3aa341fb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>chore(markdown): highlights test</title>
<updated>2022-01-07T10:14:29Z</updated>
<author>
<name>numToStr</name>
<email>vikasraj1911@gmail.com</email>
</author>
<published>2022-01-07T09:52:09Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=0f01bbb1c28055de6b81da1ba7385e01e0b67215'/>
<id>urn:sha1:0f01bbb1c28055de6b81da1ba7385e01e0b67215</id>
<content type='text'>
</content>
</entry>
</feed>
