<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nvim-treesitter/queries/slang, branch master</title>
<subtitle>[no description]</subtitle>
<id>http://git.sudomsg.com/mirror/nvim-treesitter/atom/queries/slang?h=master</id>
<link rel='self' href='http://git.sudomsg.com/mirror/nvim-treesitter/atom/queries/slang?h=master'/>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/'/>
<updated>2024-10-14T14:45:00Z</updated>
<entry>
<title>fix(slang): adapt to parser changes</title>
<updated>2024-10-14T14:45:00Z</updated>
<author>
<name>Amaan Qureshi</name>
<email>amaanq12@gmail.com</email>
</author>
<published>2024-10-13T08:52:54Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=2953b6ae786ae46b6f04b467d9b4df187bc14b11'/>
<id>urn:sha1:2953b6ae786ae46b6f04b467d9b4df187bc14b11</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feat(format): extra newline after modeline</title>
<updated>2024-02-29T14:05:30Z</updated>
<author>
<name>Phạm Huy Hoàng</name>
<email>hoangtun0810@gmail.com</email>
</author>
<published>2024-02-18T15:00:07Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=62b0bb4f24ad09f535efe44cc9d088f90dcd2498'/>
<id>urn:sha1:62b0bb4f24ad09f535efe44cc9d088f90dcd2498</id>
<content type='text'>
</content>
</entry>
<entry>
<title>highlights(slang): add support for `where`</title>
<updated>2024-02-21T06:59:09Z</updated>
<author>
<name>Stephan Seitz</name>
<email>sseitz@nvidia.com</email>
</author>
<published>2024-02-21T00:23:02Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=01cdcfb21645cbdc8ad34a0956ee177ce475036f'/>
<id>urn:sha1:01cdcfb21645cbdc8ad34a0956ee177ce475036f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>highlights(slang): add support for `associatedtype`</title>
<updated>2024-02-16T00:10:49Z</updated>
<author>
<name>Stephan Seitz</name>
<email>stephan.seitz@fau.de</email>
</author>
<published>2024-02-15T23:42:42Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=d49a8f82f107b43b7cdded278dab4873024a6f36'/>
<id>urn:sha1:d49a8f82f107b43b7cdded278dab4873024a6f36</id>
<content type='text'>
</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>parsers: add tree-sitter-slang</title>
<updated>2023-11-29T08:54:24Z</updated>
<author>
<name>Stephan Seitz</name>
<email>stephan.seitz@fau.de</email>
</author>
<published>2023-11-18T19:52:31Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=10432e6b0fb22a0fbe7b8fa45f7fbee187029d90'/>
<id>urn:sha1:10432e6b0fb22a0fbe7b8fa45f7fbee187029d90</id>
<content type='text'>
</content>
</entry>
</feed>
