<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nvim-treesitter/queries/regex, branch master</title>
<subtitle>[no description]</subtitle>
<id>http://git.sudomsg.com/mirror/nvim-treesitter/atom/queries/regex?h=master</id>
<link rel='self' href='http://git.sudomsg.com/mirror/nvim-treesitter/atom/queries/regex?h=master'/>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/'/>
<updated>2024-11-07T21:06:35Z</updated>
<entry>
<title>fix(regex): more accurate highlights for named backreferences</title>
<updated>2024-11-07T21:06:35Z</updated>
<author>
<name>Riley Bruins</name>
<email>ribru17@hotmail.com</email>
</author>
<published>2024-11-07T19:57:45Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=eab2005cb5a839abb4af9961a76bbf819650a1a9'/>
<id>urn:sha1:eab2005cb5a839abb4af9961a76bbf819650a1a9</id>
<content type='text'>
Highlight both surrounding angle brackets, and only apply the operator
highlight to the actual \k operator.
</content>
</entry>
<entry>
<title>feat(regex): highlights for lazy quantifiers, \k</title>
<updated>2024-11-03T10:35:27Z</updated>
<author>
<name>Riley Bruins</name>
<email>ribru17@hotmail.com</email>
</author>
<published>2024-11-03T02:49:22Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=98b46a647e3c4db3ecfb83a982d14695c9895f07'/>
<id>urn:sha1:98b46a647e3c4db3ecfb83a982d14695c9895f07</id>
<content type='text'>
Highlights the "?" following .* and the \k backreference operator in a
pattern like the following: title=(?&lt;quote&gt;["'])(.*?)\k&lt;quote&gt;
</content>
</entry>
<entry>
<title>feat(regex): better count quantifier highlights</title>
<updated>2024-10-15T06:32:44Z</updated>
<author>
<name>Riley Bruins</name>
<email>ribru17@hotmail.com</email>
</author>
<published>2024-10-15T02:14:14Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=049d42a31e677eb517d17acaa39666c58888d7be'/>
<id>urn:sha1:049d42a31e677eb517d17acaa39666c58888d7be</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>feat(luap): highlights more consistent with regex (#5819)</title>
<updated>2023-12-23T09:40:10Z</updated>
<author>
<name>Riley Bruins</name>
<email>ribru17@hotmail.com</email>
</author>
<published>2023-12-23T09:40:10Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=1c619f5f20f33684b7b27a0c2c30143be7c44baa'/>
<id>urn:sha1:1c619f5f20f33684b7b27a0c2c30143be7c44baa</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feat(regex): any_character, start end assertion hl differentiation</title>
<updated>2023-11-21T12:13:51Z</updated>
<author>
<name>Riley Bruins</name>
<email>ribru17@hotmail.com</email>
</author>
<published>2023-11-20T04:34:18Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=7da3cb6323d1e1fbfc4d7dc05cac74946458b8a0'/>
<id>urn:sha1:7da3cb6323d1e1fbfc4d7dc05cac74946458b8a0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>chore: update Regex from upstream</title>
<updated>2023-07-12T13:51:15Z</updated>
<author>
<name>Amaan Qureshi</name>
<email>amaanq@macbook-air.myfiosgateway.com</email>
</author>
<published>2023-07-12T11:01:36Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=08aabb145f93ed1dd607ce8e2dcd52d356822300'/>
<id>urn:sha1:08aabb145f93ed1dd607ce8e2dcd52d356822300</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Regex highlights: Add constant highlight for class_character</title>
<updated>2021-01-03T18:05:38Z</updated>
<author>
<name>Stephan Seitz</name>
<email>stephan.seitz@fau.de</email>
</author>
<published>2020-12-28T17:20:11Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=43381c1321a16686259de8631f4f3e71bb7939a6'/>
<id>urn:sha1:43381c1321a16686259de8631f4f3e71bb7939a6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Regex highlights: no escape highlighting for escaped special characters</title>
<updated>2021-01-03T18:05:38Z</updated>
<author>
<name>Stephan Seitz</name>
<email>stephan.seitz@fau.de</email>
</author>
<published>2020-12-28T17:17:01Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=e8fa1c2c84939385e9161cbc03e206c8afc70a12'/>
<id>urn:sha1:e8fa1c2c84939385e9161cbc03e206c8afc70a12</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Regex highlighting: add "?" operator</title>
<updated>2021-01-03T18:05:38Z</updated>
<author>
<name>Stephan Seitz</name>
<email>stephan.seitz@fau.de</email>
</author>
<published>2020-12-28T17:16:42Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=91220e5f4b8082e1ef7656cc2b9f685d44e96349'/>
<id>urn:sha1:91220e5f4b8082e1ef7656cc2b9f685d44e96349</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ci: fix wrong queries</title>
<updated>2020-09-11T10:02:35Z</updated>
<author>
<name>Thomas Vigouroux</name>
<email>tomvig38@gmail.com</email>
</author>
<published>2020-09-07T16:14:54Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=b90e520ccdbb9d88fb4f7e7a7eea73de196c856c'/>
<id>urn:sha1:b90e520ccdbb9d88fb4f7e7a7eea73de196c856c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add tree-sitter-regex</title>
<updated>2020-06-14T11:09:38Z</updated>
<author>
<name>Stephan Seitz</name>
<email>stephan.seitz@fau.de</email>
</author>
<published>2020-05-31T22:22:59Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=45ea0df21a8494c7a8258bbb98ebd510716148e9'/>
<id>urn:sha1:45ea0df21a8494c7a8258bbb98ebd510716148e9</id>
<content type='text'>
This might be interesting for injected highlighting
</content>
</entry>
</feed>
