<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nvim-treesitter/scripts/format-queries.lua, branch feat/stable</title>
<subtitle>[no description]</subtitle>
<id>http://git.sudomsg.com/mirror/nvim-treesitter/atom/scripts/format-queries.lua?h=feat%2Fstable</id>
<link rel='self' href='http://git.sudomsg.com/mirror/nvim-treesitter/atom/scripts/format-queries.lua?h=feat%2Fstable'/>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/'/>
<updated>2025-11-14T21:58:12Z</updated>
<entry>
<title> chore: remove format-queries script</title>
<updated>2025-11-14T21:58:12Z</updated>
<author>
<name>Christian Clason</name>
<email>c.clason@uni-graz.at</email>
</author>
<published>2025-11-14T11:50:49Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=0cfa59947416d14e36a41e6fe4f025abd8760301'/>
<id>urn:sha1:0cfa59947416d14e36a41e6fe4f025abd8760301</id>
<content type='text'>
 The source of truth for formatting (according to make formatquery and
 CI) is now ts_query_ls, so remove the no longer required script to
 prevent divergence and bitrotting.
</content>
</entry>
<entry>
<title>refactor(lua): fix some luals warnings</title>
<updated>2025-05-12T16:43:40Z</updated>
<author>
<name>Christian Clason</name>
<email>c.clason@uni-graz.at</email>
</author>
<published>2025-04-27T14:08:59Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=53d7118483e5c0d7bbe5548a2c158dc6fd35f699'/>
<id>urn:sha1:53d7118483e5c0d7bbe5548a2c158dc6fd35f699</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix(formatter): increase match limit</title>
<updated>2025-05-12T16:43:40Z</updated>
<author>
<name>Christian Clason</name>
<email>c.clason@uni-graz.at</email>
</author>
<published>2025-03-12T08:44:33Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=12e0246e4fc2b75742d98a546216234444fdad28'/>
<id>urn:sha1:12e0246e4fc2b75742d98a546216234444fdad28</id>
<content type='text'>
Problem: Some very long patterns were not formatted correctly.

Solution: Increase the match limit when iterating to 1024.
</content>
</entry>
<entry>
<title>fix(format): update scripts to support nightly (#6126)</title>
<updated>2025-05-12T16:43:40Z</updated>
<author>
<name>Phạm Huy Hoàng</name>
<email>hoangtun0810@gmail.com</email>
</author>
<published>2024-02-18T11:56:53Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=039fe9095d07910e71ec41ef38e0bffa378293e1'/>
<id>urn:sha1:039fe9095d07910e71ec41ef38e0bffa378293e1</id>
<content type='text'>
No need for assert as the use is contained within the script only
</content>
</entry>
<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>feat(formatter): support formatting missing nodes</title>
<updated>2025-02-04T08:56:51Z</updated>
<author>
<name>Riley Bruins</name>
<email>ribru17@hotmail.com</email>
</author>
<published>2025-02-02T17:07:38Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=53a6b3993f5803378d4d031bf114c0b125a52ba8'/>
<id>urn:sha1:53a6b3993f5803378d4d031bf114c0b125a52ba8</id>
<content type='text'>
This commit makes missing nodes take formatting identical to that of
regular named nodes, with the only exception being that a newline will
not be prepended to a node name. E.g. this pattern:

```query
(MISSING identifier)
```

will *not* be changed to:

```query
(MISSING
  (identifier))
```
</content>
</entry>
<entry>
<title>fix(formatter): prefer #-prefixed predicates</title>
<updated>2025-02-04T08:56:39Z</updated>
<author>
<name>Riley Bruins</name>
<email>ribru17@hotmail.com</email>
</author>
<published>2025-02-02T16:58:26Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=7194ff9511c811d5af0767eb6f77cf53f85ffc03'/>
<id>urn:sha1:7194ff9511c811d5af0767eb6f77cf53f85ffc03</id>
<content type='text'>
This prevents the formatter for appending a space after the "." in a
predicate prefix, and changes it to a "#" to match all other occurrences
in the codebase.
</content>
</entry>
<entry>
<title>fix: formatter idempotency for nested groupings (#7345)</title>
<updated>2024-11-11T02:59:21Z</updated>
<author>
<name>Riley Bruins</name>
<email>ribru17@hotmail.com</email>
</author>
<published>2024-11-11T02:59:21Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=a069bb62a86caaa15ea68af9e6a3bcd8cbc3608d'/>
<id>urn:sha1:a069bb62a86caaa15ea68af9e6a3bcd8cbc3608d</id>
<content type='text'>
Currently, for something like `(((((node))))) @cap`, the formatter will
produce `((node)) @cap`, and then after another pass it will produce
`(node) @cap`. This commit makes it so that all extraneous parentheses
are removed on the first pass.</content>
</entry>
<entry>
<title>fix(formatter): simplify code, remove odd line break</title>
<updated>2024-10-26T08:07:30Z</updated>
<author>
<name>Riley Bruins</name>
<email>ribru17@hotmail.com</email>
</author>
<published>2024-10-25T20:34:22Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=674100c1fc31d660e2bfb41c19313a72c32ca008'/>
<id>urn:sha1:674100c1fc31d660e2bfb41c19313a72c32ca008</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix(formatter): adapt formatter for nightly</title>
<updated>2024-09-07T15:31:18Z</updated>
<author>
<name>Riley Bruins</name>
<email>ribru17@hotmail.com</email>
</author>
<published>2024-09-07T15:24:47Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=58030e6d6f1d6609b43dcb765d54539dcc6a1a76'/>
<id>urn:sha1:58030e6d6f1d6609b43dcb765d54539dcc6a1a76</id>
<content type='text'>
After Neovim pull #30193, the formatter was broken due to changes in the
way node data is passed to predicates.
</content>
</entry>
<entry>
<title>fix(format): field_def inside grouping</title>
<updated>2024-08-01T06:40:23Z</updated>
<author>
<name>再生花</name>
<email>hoangtun0810@gmail.com</email>
</author>
<published>2024-08-01T06:40:23Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=929e4739ccdf67263d327c042e71a16a80845dc8'/>
<id>urn:sha1:929e4739ccdf67263d327c042e71a16a80845dc8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feat(predicates)!: rename `has-type` to `kind-eq` to align with Helix</title>
<updated>2024-06-02T10:07:58Z</updated>
<author>
<name>Christian Clason</name>
<email>c.clason@uni-graz.at</email>
</author>
<published>2024-06-01T11:37:08Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=a80fe081b4c5890980561e0de2458f64aaffbfc7'/>
<id>urn:sha1:a80fe081b4c5890980561e0de2458f64aaffbfc7</id>
<content type='text'>
No point in having a different name for the same predicate.
</content>
</entry>
<entry>
<title>feat(query): adapt to upstream changes</title>
<updated>2024-05-25T22:24:03Z</updated>
<author>
<name>Amaan Qureshi</name>
<email>amaanq12@gmail.com</email>
</author>
<published>2024-05-24T15:48:47Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=488e39a8f1fcb7935deaaf1852e3d6c28ca253d0'/>
<id>urn:sha1:488e39a8f1fcb7935deaaf1852e3d6c28ca253d0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>refactor(format): drop extra indentation for field</title>
<updated>2024-03-21T14:51:26Z</updated>
<author>
<name>Phạm Huy Hoàng</name>
<email>hoangtun0810@gmail.com</email>
</author>
<published>2024-03-21T11:44:35Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=722617e6726c1508adadf83d531f54987c703be0'/>
<id>urn:sha1:722617e6726c1508adadf83d531f54987c703be0</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>feat(format-scripts): linewrap predicates</title>
<updated>2024-02-23T08:42:01Z</updated>
<author>
<name>再生花</name>
<email>hoangtun0810@gmail.com</email>
</author>
<published>2024-02-23T08:42:01Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=31641d72a4c33536e9d5fc8f829d2ba84211af8a'/>
<id>urn:sha1:31641d72a4c33536e9d5fc8f829d2ba84211af8a</id>
<content type='text'>
"format-ignore".kick()</content>
</entry>
<entry>
<title>fix(scripts): add missing \n for nested grouping</title>
<updated>2024-02-20T01:36:49Z</updated>
<author>
<name>Phạm Huy Hoàng</name>
<email>hoangtun0810@gmail.com</email>
</author>
<published>2024-02-20T00:59:50Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=917d696592a34917a12208f579d5e72c1a904aee'/>
<id>urn:sha1:917d696592a34917a12208f579d5e72c1a904aee</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix(scripts): format-queries defaults to cwd</title>
<updated>2024-02-20T00:59:02Z</updated>
<author>
<name>Christian Clason</name>
<email>c.clason@uni-graz.at</email>
</author>
<published>2024-02-19T17:43:32Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=4b27f87fef2df2feaca47a8498f5f7f51e94b765'/>
<id>urn:sha1:4b27f87fef2df2feaca47a8498f5f7f51e94b765</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix: typos</title>
<updated>2024-02-19T16:45:54Z</updated>
<author>
<name>dundargoc</name>
<email>gocdundar@gmail.com</email>
</author>
<published>2024-02-19T15:49:04Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=9bc21966f27d48ab8eac4c42d5b130ef6c411304'/>
<id>urn:sha1:9bc21966f27d48ab8eac4c42d5b130ef6c411304</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix(format): fix nested grouping indentation (#6128)</title>
<updated>2024-02-18T14:13:39Z</updated>
<author>
<name>Phạm Huy Hoàng</name>
<email>hoangtun0810@gmail.com</email>
</author>
<published>2024-02-18T14:13:39Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=fef26b5eeee1dca1699639dd0d76c47f15a45ee6'/>
<id>urn:sha1:fef26b5eeee1dca1699639dd0d76c47f15a45ee6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix(format): handle list with 300 nodes</title>
<updated>2024-01-30T15:59:27Z</updated>
<author>
<name>Phạm Huy Hoàng</name>
<email>hoangtun0810@gmail.com</email>
</author>
<published>2024-01-30T15:19:54Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=5f950cdcb82d2cf74e6b30338897b3a4897f52b3'/>
<id>urn:sha1:5f950cdcb82d2cf74e6b30338897b3a4897f52b3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix(format): improve error message</title>
<updated>2024-01-30T08:57:54Z</updated>
<author>
<name>Christian Clason</name>
<email>c.clason@uni-graz.at</email>
</author>
<published>2024-01-30T08:57:54Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=e9602f41192ba51842b4be4d02c718a64cd57acf'/>
<id>urn:sha1:e9602f41192ba51842b4be4d02c718a64cd57acf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix(format-scripts): remove parens if possible</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-21T12:13:04Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=76ca66db38edb07bade5b7b233254b2c2ae7dc30'/>
<id>urn:sha1:76ca66db38edb07bade5b7b233254b2c2ae7dc30</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixup format (#5934)</title>
<updated>2024-01-20T09:47:56Z</updated>
<author>
<name>Phạm Huy Hoàng</name>
<email>hoangtun0810@gmail.com</email>
</author>
<published>2024-01-20T09:47:56Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=d198a75e2c2e24885b05650515538d055d0c64e4'/>
<id>urn:sha1:d198a75e2c2e24885b05650515538d055d0c64e4</id>
<content type='text'>
* fix(format): newline between top-level field defs

* fixup: newline between node and comment

* fixup: optimize pattern</content>
</entry>
<entry>
<title>feat: query formatting script</title>
<updated>2024-01-19T15:58:37Z</updated>
<author>
<name>Pham Huy Hoang</name>
<email>hoangtun0810@gmail.com</email>
</author>
<published>2024-01-04T17:21:00Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=15de22a2e19fb5c79bbcff0e2d12f4b1dd44e069'/>
<id>urn:sha1:15de22a2e19fb5c79bbcff0e2d12f4b1dd44e069</id>
<content type='text'>
Usage:
- nvim -l scripts/format-queries.lua /path/to/file.scm
- nvim -l scripts/format-queries.lua /path/to/dir

fixup: add `format-ignore` directive to query/highlights.scm
</content>
</entry>
</feed>
