<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nvim-treesitter/tests/query/highlights/haskell, branch test/plentest</title>
<subtitle>[no description]</subtitle>
<id>http://git.sudomsg.com/mirror/nvim-treesitter/atom/tests/query/highlights/haskell?h=test%2Fplentest</id>
<link rel='self' href='http://git.sudomsg.com/mirror/nvim-treesitter/atom/tests/query/highlights/haskell?h=test%2Fplentest'/>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/'/>
<updated>2024-05-07T07:27:44Z</updated>
<entry>
<title>fix(haskell): update queries and tests for rewritten parser (#6580)</title>
<updated>2024-05-07T07:27:44Z</updated>
<author>
<name>Marc Jakobi</name>
<email>marc.jakobi@tiko.energy</email>
</author>
<published>2024-05-07T07:27:44Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=da0efd7398713a3177da5ce8690f0e5c5415763d'/>
<id>urn:sha1:da0efd7398713a3177da5ce8690f0e5c5415763d</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>feat(haskell): tweak highlights</title>
<updated>2023-11-19T00:02:29Z</updated>
<author>
<name>Marc Jakobi</name>
<email>marc.jakobi@tiko.energy</email>
</author>
<published>2023-11-19T00:02:29Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=5240574bcbd5e3ad793b96b3766693c2bc5c86a9'/>
<id>urn:sha1:5240574bcbd5e3ad793b96b3766693c2bc5c86a9</id>
<content type='text'>
* add cases for `qualified_variable`

* add function defined in terms of composition</content>
</entry>
<entry>
<title>feat(haskell): highlights improvements</title>
<updated>2023-10-15T18:32:51Z</updated>
<author>
<name>Marc Jakobi</name>
<email>marc.jakobi@tiko.energy</email>
</author>
<published>2023-10-08T19:34:55Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=d33dbdab0138d78b285e9dddc8287239776488f5'/>
<id>urn:sha1:d33dbdab0138d78b285e9dddc8287239776488f5</id>
<content type='text'>
- Consider functions with only one value on the rhs as variables
- Applied composition: `(f . g) &lt;param&gt;` -&gt; `@function.call`
- View patterns
- `@field` in record update expression
- type_tuple and type_list as variables
- quantifier for `exp_apply (&lt;rhs&gt;)+ (variable)`
- type_tuple and type_list as variables
- Treat signatures with only one value on the rhs as variables
  (except for `IO a`) -&gt; Fixes #5505.
- Remove redundant anchors from signature function queries.
- Move signature function queries to give them higher priority
- Scoped function types
- Add signature query to function with parameters query
</content>
</entry>
<entry>
<title>fix(haskell): prevent segfault due to anchorless queries (#5502)</title>
<updated>2023-10-10T08:12:36Z</updated>
<author>
<name>Marc Jakobi</name>
<email>marc.jakobi@tiko.energy</email>
</author>
<published>2023-10-10T08:12:36Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=0eb1a0ad1c82e080e77e7b9d7a5e42632cefb543'/>
<id>urn:sha1:0eb1a0ad1c82e080e77e7b9d7a5e42632cefb543</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix(haskell): highlight fixes (#5470)</title>
<updated>2023-10-05T17:04:46Z</updated>
<author>
<name>Marc Jakobi</name>
<email>marc.jakobi@tiko.energy</email>
</author>
<published>2023-10-05T17:04:46Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=6276cd9d41a56758bc48b433c99b8f9e345a3f2d'/>
<id>urn:sha1:6276cd9d41a56758bc48b433c99b8f9e345a3f2d</id>
<content type='text'>
* fix(haskell): highlight fixes + merge qualified/unqualified queries

* fix(haskell): lambda params + add exp_record to function.call args

* style: apply PR suggestions</content>
</entry>
<entry>
<title>feat(haskell): highlights improvements + tests (#5466)</title>
<updated>2023-10-02T10:49:12Z</updated>
<author>
<name>Marc Jakobi</name>
<email>marc.jakobi@tiko.energy</email>
</author>
<published>2023-10-02T10:49:12Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=d96c216c54cc2d48d3c66ba7f0fc3c7c5b71b3b1'/>
<id>urn:sha1:d96c216c54cc2d48d3c66ba7f0fc3c7c5b71b3b1</id>
<content type='text'>
</content>
</entry>
</feed>
