<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nvim-treesitter/tests/query/highlights/python, 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>2025-10-26T16:25:42Z</updated>
<entry>
<title>fix(python): regex injection not working for concatenated strings (#8197)</title>
<updated>2025-10-26T16:25:42Z</updated>
<author>
<name>Lev Velykoivanenko</name>
<email>velykoivanenko.lev@gmail.com</email>
</author>
<published>2025-10-26T16:25:42Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=c53bb10a71a04860758757b190620814b4993a77'/>
<id>urn:sha1:c53bb10a71a04860758757b190620814b4993a77</id>
<content type='text'>
Co-authored-by: Riley Bruins &lt;ribru17@hotmail.com&gt;</content>
</entry>
<entry>
<title>fix(python): highlight all types of docstrings (#7788)</title>
<updated>2025-04-03T07:35:41Z</updated>
<author>
<name>Jakob Zahn</name>
<email>jakob.zahn@mailbox.org</email>
</author>
<published>2025-04-03T07:35:41Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=997288c55253e27f782d991099490f80205d65bf'/>
<id>urn:sha1:997288c55253e27f782d991099490f80205d65bf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix(python): prioritize builtin functions</title>
<updated>2025-03-21T07:58:45Z</updated>
<author>
<name>dcho</name>
<email>dcho.null@gmail.com</email>
</author>
<published>2025-03-19T22:22:30Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=d0a56e367712a6c055103adeffdff0b80c937e7c'/>
<id>urn:sha1:d0a56e367712a6c055103adeffdff0b80c937e7c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix(python): don't highlight parameter name as builtin (#7732)</title>
<updated>2025-03-13T08:21:55Z</updated>
<author>
<name>Salomon Popp</name>
<email>hi@salomonpopp.me</email>
</author>
<published>2025-03-13T08:21:55Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=683816f14718b257666b29f792a8d330936cf5c1'/>
<id>urn:sha1:683816f14718b257666b29f792a8d330936cf5c1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix(python): highlight function calls correctly (#7728)</title>
<updated>2025-03-12T08:22:33Z</updated>
<author>
<name>Salomon Popp</name>
<email>hi@salomonpopp.me</email>
</author>
<published>2025-03-12T08:22:33Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=1a314a58d6d7695d226b56f6b61b1596993d5ac7'/>
<id>urn:sha1:1a314a58d6d7695d226b56f6b61b1596993d5ac7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix(python): don't highlight attribute name as builtin (#7712)</title>
<updated>2025-03-11T07:48:33Z</updated>
<author>
<name>Salomon Popp</name>
<email>hi@salomonpopp.me</email>
</author>
<published>2025-03-11T07:48:33Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=cf0eabc16cf32d69f7612d0e023ef210d84cdde6'/>
<id>urn:sha1:cf0eabc16cf32d69f7612d0e023ef210d84cdde6</id>
<content type='text'>
* fix(python): don't highlight attribute name as builtin

* fix(python): highlight `@variable.member` correctly for member access context

* test: add test

* test: expand test

* docs: update comment

* refactor: change order, remove priority override

* style: remove extra newline</content>
</entry>
<entry>
<title>feat(python): highlight modules</title>
<updated>2024-11-21T15:48:16Z</updated>
<author>
<name>Omar Valdez</name>
<email>omarantoniovaldezf2@gmail.com</email>
</author>
<published>2024-10-29T06:45:33Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=8a74ac9aead72ef7a870908f1517b48f2bb25ac7'/>
<id>urn:sha1:8a74ac9aead72ef7a870908f1517b48f2bb25ac7</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>fix(python,starlark): builtin types should come after types</title>
<updated>2023-04-25T07:04:05Z</updated>
<author>
<name>Amaan Qureshi</name>
<email>amaanq12@gmail.com</email>
</author>
<published>2023-04-24T04:38:31Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=87faf372eb517077cc600c4e653e4fb3252d02ac'/>
<id>urn:sha1:87faf372eb517077cc600c4e653e4fb3252d02ac</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feat(python,starlark): highlight type conversions as `@function.macro`</title>
<updated>2023-04-25T07:04:05Z</updated>
<author>
<name>Amaan Qureshi</name>
<email>amaanq12@gmail.com</email>
</author>
<published>2023-04-24T04:30:18Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=01b42a1a57b020f18c2bf73fb545a3a7833166c9'/>
<id>urn:sha1:01b42a1a57b020f18c2bf73fb545a3a7833166c9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix(python,starlark): update field match pattern</title>
<updated>2023-04-25T07:04:05Z</updated>
<author>
<name>Amaan Qureshi</name>
<email>amaanq12@gmail.com</email>
</author>
<published>2023-04-22T00:45:47Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=5ab25d8a1f759d6d0a825acc653f2d1c2679e0df'/>
<id>urn:sha1:5ab25d8a1f759d6d0a825acc653f2d1c2679e0df</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Python: highlight future import (#2936)</title>
<updated>2022-05-13T21:46:06Z</updated>
<author>
<name>Santos Gallegos</name>
<email>stsewd@protonmail.com</email>
</author>
<published>2022-05-13T21:46:06Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=f1373051e554cc4642cda719c8023e4e8508eb2d'/>
<id>urn:sha1:f1373051e554cc4642cda719c8023e4e8508eb2d</id>
<content type='text'>
* Python: highlight future import

* Use constant.builtin</content>
</entry>
<entry>
<title>Python: highlight raise from statement</title>
<updated>2022-05-01T08:06:13Z</updated>
<author>
<name>Santos Gallegos</name>
<email>stsewd@protonmail.com</email>
</author>
<published>2022-05-01T01:10:55Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=132405f18fc85def8e5e2c5ad085a7f5fcb54880'/>
<id>urn:sha1:132405f18fc85def8e5e2c5ad085a7f5fcb54880</id>
<content type='text'>
</content>
</entry>
<entry>
<title>highlights(python): "from" in yield should be `@keyword.return`</title>
<updated>2022-04-01T15:00:21Z</updated>
<author>
<name>Stephan Seitz</name>
<email>stephan.seitz@fau.de</email>
</author>
<published>2022-04-01T14:50:57Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=b8d1c2445a1f8799ed1320ab59d121f78150ad6d'/>
<id>urn:sha1:b8d1c2445a1f8799ed1320ab59d121f78150ad6d</id>
<content type='text'>
Fixes #2712
</content>
</entry>
<entry>
<title>highlights(python): add support for pattern matching</title>
<updated>2022-01-28T18:11:20Z</updated>
<author>
<name>Stephan Seitz</name>
<email>stephan.seitz@fau.de</email>
</author>
<published>2021-12-03T18:10:11Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=c4e3564ea31183ddcd00d6192efb2879977b420e'/>
<id>urn:sha1:c4e3564ea31183ddcd00d6192efb2879977b420e</id>
<content type='text'>
Fixes #2080
Depends on https://github.com/tree-sitter/tree-sitter-python/pull/140
</content>
</entry>
</feed>
