Commit graph

12 commits

Author SHA1 Message Date
Phạm Huy Hoàng
722617e672 refactor(format): drop extra indentation for field 2024-03-21 15:51:26 +01:00
Phạm Huy Hoàng
d198a75e2c
Fixup format (#5934)
* fix(format): newline between top-level field defs

* fixup: newline between node and comment

* fixup: optimize pattern
2024-01-20 18:47:56 +09:00
Pham Huy Hoang
57a8acf0c4 chore: query formatting 2024-01-19 16:58:37 +01:00
Pham Huy Hoang
edee83272e refactor: manual pre-cleanup
Moving comments, adding `format-ignore` to lines that will be better
with it
2024-01-19 16:58:37 +01:00
Christian Clason
5b90ea2aba feat(locals)!: switch to upstream captures 2024-01-19 16:58:37 +01:00
Clay
97819053c8
Elixir: fix a few highlights, add ExUnit support to locals (#1933)
* Fix "not in" and sigil highlights

* Add ExUnit test case to locals

* Update README to mention new Elixir parser
2021-10-22 16:33:01 -05:00
Connor Lay (Clay)
725ef8fc18 Locals matching "when" operator, add pipe queries 2021-10-13 01:31:49 +02:00
Connor Lay (Clay)
25b28f6185 Increase Elixir locals pattern match depth to 20 nodes
This requires an update to `ts_query_cursor_set_match_limit` to
function properly. The current limit is 32 per this PR
https://github.com/neovim/neovim/pull/14915, increasing this value
to 128 appears to work, but more testing will be necessary.

Exposing this limit as a neovim option is worth exploring as a separate
unit of work.
2021-10-13 01:31:49 +02:00
Connor Lay (Clay)
1413f62c88 Update locals with support for deep pattern matches 2021-10-13 01:31:49 +02:00
Daniel Kempkens
a98e5c1f4f Refactor highlights and locals queries 2021-05-18 19:10:06 +02:00
Daniel Kempkens
a04b0abf21 Use #any-of? in locals 2021-05-18 19:10:06 +02:00
Daniel Kempkens
e7e1db38cd Initial Elixir support 2021-05-18 19:10:06 +02:00