aboutsummaryrefslogtreecommitdiffstats
path: root/queries/elixir
Commit message (Collapse)AuthorAgeFilesLines
* feat!: drop modules, general refactor and cleanupChristian Clason2025-05-125-511/+0
|
* feat(elixir): add highlight for LVN sigilsBrian Cardarella2025-01-111-1/+1
|
* feat(elixir): add stab_clause to foldsMitchell Hanberg2024-04-011-0/+1
|
* refactor(format): drop extra indentation for fieldPhạm Huy Hoàng2024-03-213-76/+62
|
* feat(format-scripts): linewrap predicates再生花2024-02-231-2/+6
| | | "format-ignore".kick()
* chore: format queriesPhạm Huy Hoàng2024-01-211-3/+3
|
* Fixup format (#5934)Phạm Huy Hoàng2024-01-201-0/+4
| | | | | | | * fix(format): newline between top-level field defs * fixup: newline between node and comment * fixup: optimize pattern
* fix(highlights): improve consistencyObserverOfTime2024-01-191-1/+1
|
* chore: query formattingPham Huy Hoang2024-01-194-115/+122
|
* refactor: manual pre-cleanupPham Huy Hoang2024-01-191-104/+137
| | | | | Moving comments, adding `format-ignore` to lines that will be better with it
* feat!: align standard captures with upstreamChristian Clason2024-01-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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` -> `@variable.parameter` - `@field` -> `@variable.member` - `@namespace` -> `@module` - `@float` -> `@number.float` - `@symbol` -> `@string.special.symbol` - `@string.regex` -> `@string.regexp` - `@text.*` -> `@markup.*` (`strong`, `italic`, `link`, `strikethrough`; with exceptions; see below) - `@text.title` -> `@markup.heading` - `@text.literal` -> `@markup.raw` - `@text.reference` -> `@markup.link` - `@text.uri` -> `@markup.link.url` (in markup links) - `@string.special` -> `@markup.link.label` (non-url links) - `@punctuation.special` -> `@markup.list` (markdown lists only; move subitems from `@text.todo`) * Helix captures (https://docs.helix-editor.com/master/themes.html#syntax-highlighting): - `@method` -> `@function.method` - `@method.call` -> `@function.method.call` - `@text.{todo,warning,note,danger}` -> `@comment.{error,warning,hint,info,todo}` - `@text.diff.{add,delete,}` -> `@diff.{plus,minus,delta}` - `@text.uri` -> `@string.special.url` (outside markup) - `@preproc` -> `@keyword.directive` - `@define` -> `@keyword.directive`(`.define`?) - `@storageclass` -> `@keyword.storage` - `@conditional` -> `@keyword.conditional` - `@debug` -> `@keyword.debug` - `@exception` -> `@keyword.exception` - `@include` -> `@keyword.import` - `@repeat` -> `@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`
* feat(locals)!: switch to upstream capturesChristian Clason2024-01-191-120/+120
|
* refactor: Remove all `(ERROR) @error` capturesPham Huy Hoang2023-10-251-3/+0
| | | | | | | | | | | | As discussed in PR#5421, capturing `@error` is inconsistent, requiring deep nesting (or priority) in order to correctly have red backgrounds to it. Some queries has this capture, some don't. For consistency purposes, removing all of them is more preferable. For re-enabling error, either add `(ERROR) @error` or `(ERROR _ @error)` to your custom queries.
* fix(elixir): highlight functions without parenthesis (#5511)Alexander Sieg2023-10-151-0/+1
| | | | Elixir does not require parenthesis after the function name for a valid function definition.
* chore(injections)!: update injection syntax to 0.9Pham Huy Hoang2023-08-121-17/+25
| | | | | | | | | Since 0.9, @lang syntax is still available as fallback but will soon be deprecated. Because of that, new syntax should be adopted once 0.9 becomes the baseline requirements for nvim-treesitter - update health check - update doc
* queries/*/highlights.scm : remove `@spell` for stringsShellCode332023-08-071-1/+1
|
* perf: remove match where possibleAmaan Qureshi2023-04-211-1/+1
|
* use indent.X syntax for captures and properties of set directivesGeorge Harker2023-03-241-3/+3
| | | | | | | | update CONTRIBUTING.md adjust indents for bass fix doc capture comment
* feat: add `@comment.documentation` where applicableAmaan Qureshi2023-03-051-11/+9
|
* Fix elixir `@function` capturesStephen Bolton2023-02-241-3/+4
| | | | | | | | 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.
* highlights(elixir): fix capturesObserverOfTime2022-11-261-1/+1
|
* feat(spell): upstream spell queries from spellsitterLewis Russell2022-09-061-0/+2
|
* Split func/method definition from calls in several programming language querieslfenzo2022-08-031-2/+2
|
* Fix Elixir indents to match mix formatConnor Lay (Clay)2022-02-101-7/+12
|
* Add tree-sitter-eex parser for (L)EEx files (#2351)Clay2022-01-251-0/+5
|
* Add new Elixir language injectionsClay2022-01-241-6/+28
|
* Fix highlights of module attributes and doc sigilsClay2022-01-241-2/+10
|
* fix: use more specific identifier checkŁukasz Niemier2021-11-121-1/+1
|
* fix: make comment doc highlighting work for any doc tagŁukasz Niemier2021-11-121-11/+14
|
* fix: Elixir non-doc sigils will no longer be flickeringŁukasz Niemier2021-11-122-31/+27
| | | | | It also adds support for colouring documentation metadata attributes (ex. `@doc foo: :bar`).
* Elixir: fix a few highlights, add ExUnit support to locals (#1933)Clay2021-10-222-13/+37
| | | | | | | * Fix "not in" and sigil highlights * Add ExUnit test case to locals * Update README to mention new Elixir parser
* Highlight and,or,not,in as @keyword.operatorConnor Lay (Clay)2021-10-131-4/+8
|
* Fix documentation highlights, formattingConnor Lay (Clay)2021-10-131-45/+35
|
* Locals matching "when" operator, add pipe queriesConnor Lay (Clay)2021-10-132-62/+95
|
* Increase Elixir locals pattern match depth to 20 nodesConnor Lay (Clay)2021-10-131-3/+39
| | | | | | | | | | 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.
* Update locals with support for deep pattern matchesConnor Lay (Clay)2021-10-132-75/+66
|
* Update indents & fix catch highlightsConnor Lay (Clay)2021-10-132-14/+5
|
* Update injections & highlights, add foldsConnor Lay (Clay)2021-10-133-123/+154
|
* Update injections for new elixir-lang parserConnor Lay (Clay)2021-10-131-18/+12
|
* Update highlights for new elixir-lang parserConnor Lay (Clay)2021-10-131-95/+140
|
* Add HEEx language support, add missing commentstringsClay2021-08-181-0/+5
|
* Fix: Improve Elixir highlighting performance (#1682)Connor Lay (Clay)2021-08-131-133/+107
|
* Feature: Add Surface language and integrate with Elixir (#1645)Connor Lay (Clay)2021-08-012-0/+9
| | | | | | | | | | | | | | | | | | | * 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
* fix(elixir): add missing possible parametersŁukasz Niemier2021-07-181-15/+2
|
* [elixir] Add folds (#1543)Mitchell Hanberg2021-07-091-0/+9
|
* Add regex injection for ElixirDavid Bernheisel2021-06-011-0/+9
|
* Elixir: Highlight `with` as conditionalDaniel Kempkens2021-05-271-1/+1
| | | | | `with` is also considered a conditional in Elixir. Highlight it accordingly.
* Refactor highlights and locals queriesDaniel Kempkens2021-05-182-158/+142
|
* Use #any-of? in localsDaniel Kempkens2021-05-181-3/+3
|
* Initial Elixir supportDaniel Kempkens2021-05-184-0/+314