Commit graph

33 commits

Author SHA1 Message Date
George Harker
cb568af539 use indent.X syntax for captures and properties of set directives
update CONTRIBUTING.md

adjust indents for bass

fix doc capture comment
2023-03-24 13:07:53 -04:00
Amaan Qureshi
5a87bc98da feat: add @comment.documentation where applicable 2023-03-05 17:15:32 -05:00
Stephen Bolton
a744ed1b27 Fix elixir @function captures
When viewing the previous rule in the `TSPlayground` the `@function`
captures were not actually matching. This led all functions to get the
`@function.call` group applied to them. This change makes it so that the
capture now works and where functions are defined will get the
`@function` group.
2023-02-24 17:50:17 -05:00
ObserverOfTime
27e1f3c336 highlights(elixir): fix captures 2022-11-26 13:17:51 +02:00
Lewis Russell
2a63ea5665 feat(spell): upstream spell queries from spellsitter 2022-09-06 12:44:19 +01:00
lfenzo
c784720917 Split func/method definition from calls in several programming language queries 2022-08-03 12:05:30 -07:00
Connor Lay (Clay)
5045086793 Fix Elixir indents to match mix format 2022-02-10 07:24:08 +01:00
Clay
2532937ba1
Add tree-sitter-eex parser for (L)EEx files (#2351) 2022-01-25 16:52:51 +00:00
Clay
c7d5ba7212 Add new Elixir language injections 2022-01-24 08:27:44 +01:00
Clay
7a1c404fe7 Fix highlights of module attributes and doc sigils 2022-01-24 08:27:44 +01:00
Łukasz Niemier
6372b689eb fix: use more specific identifier check 2021-11-12 13:42:36 -05:00
Łukasz Niemier
fdcd0edf24 fix: make comment doc highlighting work for any doc tag 2021-11-12 13:42:36 -05:00
Łukasz Niemier
2c2d4d89fd fix: Elixir non-doc sigils will no longer be flickering
It also adds support for colouring documentation metadata attributes
(ex. `@doc foo: :bar`).
2021-11-12 13:42:36 -05: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)
638891d401 Highlight and,or,not,in as @keyword.operator 2021-10-13 01:31:49 +02:00
Connor Lay (Clay)
6bd551d3b7 Fix documentation highlights, formatting 2021-10-13 01:31:49 +02: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
Connor Lay (Clay)
259e3f6e64 Update indents & fix catch highlights 2021-10-13 01:31:49 +02:00
Connor Lay (Clay)
886261a96b Update injections & highlights, add folds 2021-10-13 01:31:49 +02:00
Connor Lay (Clay)
ec5341a773 Update injections for new elixir-lang parser 2021-10-13 01:31:49 +02:00
Connor Lay (Clay)
e0125a5a1c Update highlights for new elixir-lang parser 2021-10-13 01:31:49 +02:00
Clay
57c2081e3f Add HEEx language support, add missing commentstrings 2021-08-18 14:07:59 +02:00
Connor Lay (Clay)
d06ab28766
Fix: Improve Elixir highlighting performance (#1682) 2021-08-13 12:09:16 -05:00
Connor Lay (Clay)
6944173e87
Feature: Add Surface language and integrate with Elixir (#1645)
* Add initial surface highlights & injections

* Additional surface highlights

* Filetype detection, fix injections

* Fix Elixir function highlight when left is an identifier

* Add surface parser

* Fix comment highlights

* Surface folds, indents, better highlights

* Highlight surface components & directives

* Restore comments Elixir injections
2021-08-01 19:09:41 +00:00
Łukasz Niemier
21a7f61b06 fix(elixir): add missing possible parameters 2021-07-18 16:44:35 +00:00
Mitchell Hanberg
f6cd2d0b2f
[elixir] Add folds (#1543) 2021-07-09 18:51:16 +00:00
David Bernheisel
ad28bbf04c Add regex injection for Elixir 2021-06-01 22:04:52 +02:00
Daniel Kempkens
ea8482621e Elixir: Highlight with as conditional
`with` is also considered a conditional in Elixir. Highlight it
accordingly.
2021-05-27 22:02:30 +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