<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nvim-treesitter/tests/query/highlights/cpp, branch fix/lua</title>
<subtitle>[no description]</subtitle>
<id>http://git.sudomsg.com/mirror/nvim-treesitter/atom?h=fix%2Flua</id>
<link rel='self' href='http://git.sudomsg.com/mirror/nvim-treesitter/atom?h=fix%2Flua'/>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/'/>
<updated>2024-05-01T07:59:50Z</updated>
<entry>
<title>feat: more `@keyword.type` captures</title>
<updated>2024-05-01T07:59:50Z</updated>
<author>
<name>Riley Bruins</name>
<email>ribru17@hotmail.com</email>
</author>
<published>2024-04-23T19:23:15Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=f58cae6c228e26681039253cb172de16cd764408'/>
<id>urn:sha1:f58cae6c228e26681039253cb172de16cd764408</id>
<content type='text'>
</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>feat(cpp): improve function.call to support any level of nesting for qualified identifiers</title>
<updated>2023-04-15T14:00:14Z</updated>
<author>
<name>John Drouhard</name>
<email>john@drouhard.dev</email>
</author>
<published>2023-04-08T18:21:09Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=dad0864fa324d1df88242a978e9d7de383c5be68'/>
<id>urn:sha1:dad0864fa324d1df88242a978e9d7de383c5be68</id>
<content type='text'>
</content>
</entry>
<entry>
<title>test(highlights/cpp): add new test for auto as type.builtin.</title>
<updated>2022-12-01T14:08:07Z</updated>
<author>
<name>Aaron Rancsik</name>
<email>20153302+aaronrancsik@users.noreply.github.com</email>
</author>
<published>2022-11-27T23:46:29Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=256802258084fcf6c7011dae4c3fbfaaf4b61518'/>
<id>urn:sha1:256802258084fcf6c7011dae4c3fbfaaf4b61518</id>
<content type='text'>
</content>
</entry>
<entry>
<title>test(highlights/cpp): type -&gt; type.builtin for primitive types.</title>
<updated>2022-12-01T14:08:07Z</updated>
<author>
<name>Aaron Rancsik</name>
<email>20153302+aaronrancsik@users.noreply.github.com</email>
</author>
<published>2022-11-27T23:45:50Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=45bb230dc0ae56b60405d4b9db3f7dcf2d2aefae'/>
<id>urn:sha1:45bb230dc0ae56b60405d4b9db3f7dcf2d2aefae</id>
<content type='text'>
</content>
</entry>
<entry>
<title>highlights(cpp): use more specific groups</title>
<updated>2022-11-26T11:17:51Z</updated>
<author>
<name>ObserverOfTime</name>
<email>chronobserver@disroot.org</email>
</author>
<published>2022-10-22T08:09:47Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=79705a1f80297d1f3178d2b30423760c060afa4a'/>
<id>urn:sha1:79705a1f80297d1f3178d2b30423760c060afa4a</id>
<content type='text'>
</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>(Broken test fixed) Updated static-namespace-functins.cpp to use function.call</title>
<updated>2022-08-03T19:05:30Z</updated>
<author>
<name>lfenzo</name>
<email>lfenzo@protonmail.com</email>
</author>
<published>2022-07-29T22:50:40Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=64f3f7415debf0e660335b42ce2be2712507d7e5'/>
<id>urn:sha1:64f3f7415debf0e660335b42ce2be2712507d7e5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>highlights(cpp): make "::" `@punctuation.delimiter`</title>
<updated>2022-05-07T11:30:36Z</updated>
<author>
<name>Stephan Seitz</name>
<email>stephan.seitz@fau.de</email>
</author>
<published>2022-05-07T10:17:16Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=a4f9539a0c04836715c56de7e3c548bcde52b1dd'/>
<id>urn:sha1:a4f9539a0c04836715c56de7e3c548bcde52b1dd</id>
<content type='text'>
Fixes #2902
</content>
</entry>
<entry>
<title>highlights(c/cpp): highlight case labels as constants</title>
<updated>2022-01-29T12:11:56Z</updated>
<author>
<name>Stephan Seitz</name>
<email>sseitz@nvidia.com</email>
</author>
<published>2021-12-20T13:50:59Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=e4675bc410ebf7889e63a691f59d5760aec4e0e9'/>
<id>urn:sha1:e4675bc410ebf7889e63a691f59d5760aec4e0e9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>highlights(cpp): fix function highlighting of Foo::bar::baz()</title>
<updated>2022-01-29T11:40:35Z</updated>
<author>
<name>Stephan Seitz</name>
<email>stephan.seitz@fau.de</email>
</author>
<published>2022-01-29T11:30:55Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=974e2181a05b4d797d3070628172146a7b60bb3b'/>
<id>urn:sha1:974e2181a05b4d797d3070628172146a7b60bb3b</id>
<content type='text'>
Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/2396
</content>
</entry>
<entry>
<title>highlights(cpp): add support for concepts</title>
<updated>2022-01-16T21:19:34Z</updated>
<author>
<name>Stephan Seitz</name>
<email>stephan.seitz@fau.de</email>
</author>
<published>2021-11-28T17:05:18Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=db01c82b08bf20e5260810dccdec7ff4936934eb'/>
<id>urn:sha1:db01c82b08bf20e5260810dccdec7ff4936934eb</id>
<content type='text'>
Requires https://github.com/tree-sitter/tree-sitter-cpp/pull/138
</content>
</entry>
<entry>
<title>Add highlight tests</title>
<updated>2021-11-24T16:29:55Z</updated>
<author>
<name>Stephan Seitz</name>
<email>stephan.seitz@fau.de</email>
</author>
<published>2021-11-20T14:09:19Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=53ba38327e0cda30be8fa8a3ab663eea8e358a6c'/>
<id>urn:sha1:53ba38327e0cda30be8fa8a3ab663eea8e358a6c</id>
<content type='text'>
</content>
</entry>
</feed>
