summaryrefslogtreecommitdiff
path: root/runtime/queries/elixir
Commit message (Collapse)AuthorAge
* text-objects: add test capture & elixir queriesConnor Lay (Clay)2022-06-21
|
* add textobject queries for elixirMichael Davis2022-06-07
|
* Elixir: inject Markdown into docs, remove h sigil HEEx injection (#2619)Clay2022-05-31
| | | Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* add tree-sitter-heexMichael Davis2022-04-13
| | | | | | | | | | | | | HEEx is a templating engine on top of Elixir's EEx templating language specific to HTML that is included in Phoenix.LiveView (though I think the plan is to eventually include it in base Phoenix). It's a superset of EEx with some additional features like components and slots. The injections don't work perfectly because the Elixir grammar is newline sensitive (the _terminator rule). See https://github.com/elixir-lang/tree-sitter-elixir/issues/24 for more information.
* remove error highlighting for tree-sitter-elixirMichael Davis2022-04-13
| | | | | | | | | This will become more important with the HEEx grammar being added. Error highlighting with the Elixir grammar is a bit jumpy because in some scenarios, a bit of missing syntax can force tree-sitter to give up on error recovery and mark the entire tree as an error. This ends up looking bad when editing. We don't typically highlight error nodes so I'm inclined to leave it out of the highlights here.
* update tree-sitter-elixirMichael Davis2022-03-30
| | | | | | | | | | | | | | | | | | news: - tree-sitter-elixir now powers Elixir syntax highlighting on github.com - GitHub now supports code-navigation for Elixir repos via tree-sitter-elixir changes: - modules now use the `@module` highlight, which was added upstream to tree-sitter - it seems appropriate to use `@namespace` to follow helix convention - added nullary range operator (e.g. `Enum.to_list(..) == []`), a new syntax for elixir 1.14 - a fix for stab clause nodes mis-highlighting when the right hand side of the stab clause contained multiple simple expressions
* add tree-sitter-regex (#1362)Michael Davis2022-01-06
| | | | | | | | | | | | | | | | | | | | | | | | | * add tree-sitter-regex * adapt regex highlights from upstream * inject regex into elixir sigil_r/2 and sigil_R/2 * generate lang-support docs * capture interesting nodes in character-ranges * make $.character_class captures more consistent * fix fallthrough behavior for character classes * capture pattern characters as 'string' * use latest tree-sitter-regex * set elixir regex injections as combined * add link to upstream queries * inject regex in rust into 'Regex::new' raw string literals
* Add tree-sitter-comment (#1300)Michael Davis2021-12-19
| | | | | | | | | | | | | | | | | | | | | | | | | * Add tree-sitter-comment Fix #1164 * fix precedence in tree-sitter-comment highlights connects https://github.com/helix-editor/helix/pull/1170 * set injection-regex for comment language * remove comment filetype * fix comment injections for neovim-style injections tags * add comment injections for elixir * remove f.comment * fix spacing in .gitmodules * run 'cargo xtask docgen' Co-authored-by: Ivan Tham <pickfire@riseup.net>
* Updated tree-sitter query scopes (#896)Kirawi2021-11-03
| | | | | | | | | | | | | | | | | | * updated theme scopes variable.property -> variable.field property -> variable.field * updated theme scopes * update book and themes updated book and themes to reflect scope changes * wip * update more queries * update dark_plus.toml
* fix: string.regex{=>p}Michael Davis2021-10-27
|
* use punctuation.special for interpolation #{ }Michael Davis2021-10-27
|
* scope arities in captures as operatorsMichael Davis2021-10-17
|
* use special.string.symbol instead of symbolMichael Davis2021-10-17
| | | | this aligns better with how ruby highlights symbols
* use latest tree-sitter-elixir with 'not in' query supportMichael Davis2021-10-17
| | | | connects https://github.com/elixir-lang/tree-sitter-elixir/issues/9
* align highlight scopes with documented scopesMichael Davis2021-10-17
|
* highlight calls to erlang modules as typesMichael Davis2021-10-17
| | | | connects https://github.com/elixir-lang/tree-sitter-elixir/pull/5
* add LICENSE snippet at elixir hightlights topMichael Davis2021-10-17
|
* use the warning type for tree-sitter ERRORsMichael Davis2021-10-17
|
* describe atoms as tagsMichael Davis2021-10-17
|
* add highlights query from elixir-lang/tree-sitter-elixirMichael Davis2021-10-17
|
* Updated elixir queries to fix crashCorey Powell2021-06-08
|
* Added elixir syntaxCorey Powell2021-06-02
Using custom fork for now to get around generating the source files