<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nvim-treesitter/queries/comment, branch main</title>
<subtitle>[no description]</subtitle>
<id>http://git.sudomsg.com/mirror/nvim-treesitter/atom/queries/comment?h=main</id>
<link rel='self' href='http://git.sudomsg.com/mirror/nvim-treesitter/atom/queries/comment?h=main'/>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/'/>
<updated>2025-05-12T16:43:40Z</updated>
<entry>
<title>feat!: drop modules, general refactor and cleanup</title>
<updated>2025-05-12T16:43:40Z</updated>
<author>
<name>Christian Clason</name>
<email>c.clason@uni-graz.at</email>
</author>
<published>2023-06-12T15:54:30Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=692b051b09935653befdb8f7ba8afdb640adf17b'/>
<id>urn:sha1:692b051b09935653befdb8f7ba8afdb640adf17b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix(comment): remove duplicate 'FIXME'</title>
<updated>2024-03-03T15:03:26Z</updated>
<author>
<name>Christian Clason</name>
<email>c.clason@uni-graz.at</email>
</author>
<published>2024-03-03T14:50:48Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=3d08cdd741ea02ab820406582f8ea0b1198e368d'/>
<id>urn:sha1:3d08cdd741ea02ab820406582f8ea0b1198e368d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>chore: format queries</title>
<updated>2024-01-21T14:55:02Z</updated>
<author>
<name>Phạm Huy Hoàng</name>
<email>hoangtun0810@gmail.com</email>
</author>
<published>2024-01-21T13:05:44Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=77e298e4de607d69aa7f37dc6dcba6aee131ac7f'/>
<id>urn:sha1:77e298e4de607d69aa7f37dc6dcba6aee131ac7f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix(comments)!: consolidate note captures</title>
<updated>2024-01-20T16:52:50Z</updated>
<author>
<name>Christian Clason</name>
<email>c.clason@uni-graz.at</email>
</author>
<published>2024-01-20T16:41:40Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=5cc562748729b6dc9563ea5a3d676ff102ab38b1'/>
<id>urn:sha1:5cc562748729b6dc9563ea5a3d676ff102ab38b1</id>
<content type='text'>
Distinguishing `hint` and `info` is too confusing; it's enough to have
`error`, `warning`, `todo`, and `note`.
</content>
</entry>
<entry>
<title>chore: query formatting</title>
<updated>2024-01-19T15:58:37Z</updated>
<author>
<name>Pham Huy Hoang</name>
<email>hoangtun0810@gmail.com</email>
</author>
<published>2024-01-06T06:05:50Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9'/>
<id>urn:sha1:57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9</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>perf(comment): remove spell capture</title>
<updated>2023-09-12T15:34:58Z</updated>
<author>
<name>Jaehwang Jung</name>
<email>tomtomjhj@gmail.com</email>
</author>
<published>2023-09-12T14:46:39Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=905e782e803e200ec43b0b31fee37164cb2249a0'/>
<id>urn:sha1:905e782e803e200ec43b0b31fee37164cb2249a0</id>
<content type='text'>
Problem:
Comment highlight query produces too many @spell captures.

Solution:
Remove the query. This is fine because comment parser is only used in
injection and the parent language has @spell for comment.
</content>
</entry>
<entry>
<title>feat(comment): highlight more comment tags</title>
<updated>2023-07-25T13:03:54Z</updated>
<author>
<name>pseudometa</name>
<email>73286100+chrisgrieser@users.noreply.github.com</email>
</author>
<published>2023-07-25T13:03:54Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=74a7da4e4be5ee71e9efb6d7bdffa16ad620cc57'/>
<id>urn:sha1:74a7da4e4be5ee71e9efb6d7bdffa16ad620cc57</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix(comment): use #any-of? predicate</title>
<updated>2023-06-16T19:21:40Z</updated>
<author>
<name>Santos Gallegos</name>
<email>stsewd@proton.me</email>
</author>
<published>2023-06-16T19:11:10Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=1b9f704eb8664508749a1164d4086e47f9afa77f'/>
<id>urn:sha1:1b9f704eb8664508749a1164d4086e47f9afa77f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feat(comment): Add some common comment tags (#4909)</title>
<updated>2023-06-09T08:14:08Z</updated>
<author>
<name>pseudometa</name>
<email>73286100+chrisgrieser@users.noreply.github.com</email>
</author>
<published>2023-06-09T08:14:08Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=e040eda9976533fa5dfa5e473079dcc7b0d95bbf'/>
<id>urn:sha1:e040eda9976533fa5dfa5e473079dcc7b0d95bbf</id>
<content type='text'>
see also: https://github.com/stsewd/tree-sitter-comment/issues/22</content>
</entry>
<entry>
<title>feat(comment): add support for URIs</title>
<updated>2023-06-04T04:03:09Z</updated>
<author>
<name>Santos Gallegos</name>
<email>stsewd@proton.me</email>
</author>
<published>2023-06-04T04:03:09Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=48f4f3ead16e59d886f2109dd796773c37dd713e'/>
<id>urn:sha1:48f4f3ead16e59d886f2109dd796773c37dd713e</id>
<content type='text'>
https and https links are recognized now
ref https://github.com/stsewd/tree-sitter-comment/pull/21</content>
</entry>
<entry>
<title>comment: remove user mention highlight</title>
<updated>2023-05-10T15:53:57Z</updated>
<author>
<name>ObserverOfTime</name>
<email>chronobserver@disroot.org</email>
</author>
<published>2023-05-10T15:46:07Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=f9cfd40c08e1a505e728271a57960c387a9bf8f5'/>
<id>urn:sha1:f9cfd40c08e1a505e728271a57960c387a9bf8f5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>comment(highlights): reduce user mention priority</title>
<updated>2023-03-20T08:47:56Z</updated>
<author>
<name>ObserverOfTime</name>
<email>chronobserver@disroot.org</email>
</author>
<published>2023-03-20T08:40:10Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=25b656a4b771ee7d440e506280b9ae546d6f7233'/>
<id>urn:sha1:25b656a4b771ee7d440e506280b9ae546d6f7233</id>
<content type='text'>
</content>
</entry>
<entry>
<title>comment(highlights): add `@nospell` to tags and user mentions</title>
<updated>2023-03-01T20:22:10Z</updated>
<author>
<name>Yochem van Rosmalen</name>
<email>yochem+git@icloud.com</email>
</author>
<published>2023-03-01T13:26:52Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=252c1011c4bae91d25a8c54be4ed1a7b341c088c'/>
<id>urn:sha1:252c1011c4bae91d25a8c54be4ed1a7b341c088c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>comment(highlights): reduce false positives (#4298)</title>
<updated>2023-02-13T08:43:26Z</updated>
<author>
<name>Santos Gallegos</name>
<email>stsewd@proton.me</email>
</author>
<published>2023-02-13T08:43:26Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=1ec36fdcd567ee97e77fbaec29c3f8145d51e72c'/>
<id>urn:sha1:1ec36fdcd567ee97e77fbaec29c3f8145d51e72c</id>
<content type='text'>
There are a couple cases where the comment highlights
will match things that aren't necessary a tag.
For example in Rust, when commenting a block that deals with
generics (generics are declared as `T: Type`),
this may be distracting.

So, instead of highlighting all tags, we can restrict
to highlighting the explicit keywords.

Ref https://github.com/stsewd/tree-sitter-comment/issues/14</content>
</entry>
<entry>
<title>highlights(comment): improve note tags</title>
<updated>2022-11-26T11:17:51Z</updated>
<author>
<name>ObserverOfTime</name>
<email>chronobserver@disroot.org</email>
</author>
<published>2022-10-17T17:09:56Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=53c26dd4af08d0a8cb59d8deb34049bf4761d707'/>
<id>urn:sha1:53c26dd4af08d0a8cb59d8deb34049bf4761d707</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feat(spell): support more languages</title>
<updated>2022-09-26T12:47:12Z</updated>
<author>
<name>Lewis Russell</name>
<email>lewis6991@gmail.com</email>
</author>
<published>2022-09-26T09:19:02Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=37398c7d68826c8d6ae3f85cc52d83fd3dee4f84'/>
<id>urn:sha1:37398c7d68826c8d6ae3f85cc52d83fd3dee4f84</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feat(comment): highlight `NOTE` as `@text.note` (#3537)</title>
<updated>2022-09-23T17:52:00Z</updated>
<author>
<name>Erik Westrup</name>
<email>erik.westrup@gmail.com</email>
</author>
<published>2022-09-23T17:52:00Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=26105050aae3a15dd85feaeb0439e253e31d5ceb'/>
<id>urn:sha1:26105050aae3a15dd85feaeb0439e253e31d5ceb</id>
<content type='text'>

</content>
</entry>
<entry>
<title>Prefer lua-match over match</title>
<updated>2021-11-23T09:02:06Z</updated>
<author>
<name>Lewis Russell</name>
<email>lewis6991@gmail.com</email>
</author>
<published>2021-11-18T09:51:03Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=011ac894ec5b9e36563d8629fb7734f43ddb27a8'/>
<id>urn:sha1:011ac894ec5b9e36563d8629fb7734f43ddb27a8</id>
<content type='text'>
as string.find is much quicker than vim.regex:match*
</content>
</entry>
<entry>
<title>fix typo in query</title>
<updated>2021-06-26T10:19:08Z</updated>
<author>
<name>Jaehwang Jerry Jung</name>
<email>tomtomjhj@gmail.com</email>
</author>
<published>2021-06-26T06:08:49Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=c04aa172a3feab61f8f4fbfa0e3d47fa12513485'/>
<id>urn:sha1:c04aa172a3feab61f8f4fbfa0e3d47fa12513485</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use #any-of? instead of #match? where posible</title>
<updated>2021-06-24T22:22:48Z</updated>
<author>
<name>Joakker</name>
<email>joaquinandresleon108@gmail.com</email>
</author>
<published>2021-06-24T18:45:31Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=c699cc2e47fe302e9f414356cceb20a309be5bc6'/>
<id>urn:sha1:c699cc2e47fe302e9f414356cceb20a309be5bc6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Comment: highlight text nodes</title>
<updated>2021-04-03T08:48:09Z</updated>
<author>
<name>Santos Gallegos</name>
<email>stsewd@protonmail.com</email>
</author>
<published>2021-04-02T16:58:45Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=4bfccba843d4fb2da96996dd827cd03dd9e546fa'/>
<id>urn:sha1:4bfccba843d4fb2da96996dd827cd03dd9e546fa</id>
<content type='text'>
As requested in https://github.com/nvim-treesitter/nvim-treesitter/issues/236#issuecomment-797878646
</content>
</entry>
<entry>
<title>Add comment parser to highlight comment tags (#893)</title>
<updated>2021-03-12T16:21:46Z</updated>
<author>
<name>Santos Gallegos</name>
<email>stsewd@protonmail.com</email>
</author>
<published>2021-03-12T16:21:46Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=e4083fc8e11e6585f53d62eb71778cc2af464fad'/>
<id>urn:sha1:e4083fc8e11e6585f53d62eb71778cc2af464fad</id>
<content type='text'>
Closes #236</content>
</entry>
</feed>
