aboutsummaryrefslogtreecommitdiffstats
path: root/queries/elixir/highlights.scm
Commit message (Collapse)AuthorAgeFilesLines
* refactor(format): drop extra indentation for fieldPhạm Huy Hoàng2024-03-211-60/+49
|
* feat(format-scripts): linewrap predicates再生花2024-02-231-2/+6
| | | "format-ignore".kick()
* chore: format queriesPhạm Huy Hoàng2024-01-211-3/+3
|
* fix(highlights): improve consistencyObserverOfTime2024-01-191-1/+1
|
* chore: query formattingPham Huy Hoang2024-01-191-91/+91
|
* 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`
* 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.
* queries/*/highlights.scm : remove `@spell` for stringsShellCode332023-08-071-1/+1
|
* perf: remove match where possibleAmaan Qureshi2023-04-211-1/+1
|
* 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 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-121-19/+15
| | | | | 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-221-13/+7
| | | | | | | * 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-131-4/+9
|
* Update locals with support for deep pattern matchesConnor Lay (Clay)2021-10-131-3/+4
|
* Update indents & fix catch highlightsConnor Lay (Clay)2021-10-131-0/+1
|
* Update injections & highlights, add foldsConnor Lay (Clay)2021-10-131-118/+142
|
* Update highlights for new elixir-lang parserConnor Lay (Clay)2021-10-131-95/+140
|
* 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-011-0/+4
| | | | | | | | | | | | | | | | | | | * 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: 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-181-98/+97
|
* Initial Elixir supportDaniel Kempkens2021-05-181-0/+190