aboutsummaryrefslogtreecommitdiff
path: root/helix-syntax/languages
Commit message (Collapse)AuthorAge
* feat: add tree-sitter-makeEric Crosson2022-01-08
| | | | | | | | This commit adds syntax highlighting for GNU Make[^1] makefiles via tree-sitter-make[^2]. [^1]: https://www.gnu.org/software/make/ [^2]: https://github.com/alemuller/tree-sitter-make
* Upgrade and reenable tree-sitter-haskellOwen Shepherd2022-01-08
|
* 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 llvm-mir highlighting (#1398)Sebastian Neubauer2022-01-04
| | | | | | | | | | | | | | | | | * Add injection regex for more languages To support embedding them in other languages like markdown. * Add llvm-mir highlighting LLVM Machine IR is dumped as yaml files that can embed LLVM IR and Machine IR. To support this, add a llvm-mir-yaml language that uses the yaml parser, but uses different injections to highlight IR and MIR. * Update submodule with fixed multiline comments Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
* Add LLVM TableGen highlighting (#1409)Sebastian Neubauer2022-01-03
| | | | | | | Add a tree-sitter grammar and highlights for TableGen files. TableGen and its grammar are described here: https://llvm.org/docs/TableGen/index.html Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
* add tree-sitter-git-rebase (#1402)Michael Davis2021-12-30
| | | | | | | | | | | | | | | | | | | | | | | | | * add submodule on tree-sitter-rebase, add to languages * add basic highlights query * inject bash in execute statements * update tree-sitter-rebase * tree-sitter-rebase->tree-sitter-git-rebase * get injection working with tree-sitter-git-commit * set scope under source.gitrebase * unset include-children on commit message injections * Revert "unset include-children on commit message injections" This reverts commit 2ecee155ea8e229651920b291062c2ee84b47944. * fix generated language docs * use rebase_command scopes from tree-sitter-git-commit
* Add tree-sitter-git-diff (#1373)Michael Davis2021-12-29
| | | | | | | | | | | | | | | | | | | | | | * add submodule on tree-sitter-git-diff * add git-diff highlights * inject git-diff into git-commit * update tree-sitter-git-commit with fix for bad diff case * add git-diff to language support docs * include-children in diff injections This ensures that children nodes of $.message are included in the injection, such as $.user or issue/pr numbers. Without this change, diffs containing '#' or '@' characters can trip up the injection and be parsed separately. See https://github.com/helix-editor/helix/pull/1373#issuecomment-1001215629 * set diff language's scope as source.diff
* Improve llvm highlighting and queries (#1388)Sebastian Neubauer2021-12-29
| | | | | | | | * Improve llvm highlighting and queries The llvm tree-sitter parser was updated to support scopes and more accurate highlighting. * Group highlight expressions better
* tree-sitter-gitcommit->tree-sitter-git-commitMichael Davis2021-12-25
|
* add gitcommit grammar and language configurationMichael Davis2021-12-25
|
* Support dockerfiles (#1303)Midnight Exigent2021-12-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * allow language.config (in languages.toml) to be passed in as a toml object * Change config field for languages from json string to toml object * remove indents on languages.toml config * fix: remove patch version from serde_json import in helix-core * Use same tree-sitter-zig as upstream/master * fix(completion_popup): Fixes #1256 * Update helix-term/src/ui/completion.rs * feat(languages): Add support for `Dockerfile`s * docs(cargo-xtask-docgen): * improvement(langs-dockerfile): Add `injection-regex` to `languages.toml` for `Dockerfile` * improvement(langs-dockerfile): Add injections.scm * Update .gitmodules Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
* Add fish highlighting (#1308)Sebastian Neubauer2021-12-21
| | | | The highlights were copied and modified from https://github.com/nvim-treesitter/nvim-treesitter/blob/master/queries/fish/highlights.scm
* 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>
* Fix tree-sitter-llvm submodule (#1298)Sebastian Neubauer2021-12-19
| | | Fix the path to the submodule and init the submodule.
* Add dart lsp config and queries (#1250)Luke Jones2021-12-18
| | | | | | | | | | | | | | | | * Add language: dart The setup requires that dart be in the users path, such as: ``` export PATH="$HOME/Android/flutter/bin/cache/dart-sdk/bin/:$PATH" ``` Refactor the dart highlights * lang: dart: add indents and locals * lang: dart: corrections to local scope Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
* Add scala syntax highlights (#1278)Oliver Hechtl2021-12-18
| | | | | | | | | | | | | * add partial scala syntax highlights * ran cargo xtask docgen * updated tree-sitter-scala, fixed highlights * fix comments * move identifier to the end of the highlights * add indents
* Add markdown grammarBlaž Hrastnik2021-12-14
| | | | Fixes #215
* Add language support for WGSL (#1166)Kirawi2021-11-27
|
* glsl support (#993)Mateusz S. Szczygieł2021-11-08
| | | | | * add glsl language support * glsl: use indents.toml file
* Perl support (#978)ath32021-11-08
|
* update cpp queries (#930)Houkime2021-10-29
| | | Co-authored-by: Houkime <>
* CMake support (#888)ath32021-10-22
|
* use latest tree-sitter-elixir with 'not in' query supportMichael Davis2021-10-17
| | | | connects https://github.com/elixir-lang/tree-sitter-elixir/issues/9
* prefer elixir-lang/tree-sitter-elixirMichael Davis2021-10-17
|
* Add highlight support for tree-sitter-query language (tsq) (#845)Michael Davis2021-10-16
| | | | | | | | | | | | | * add submodule on tree-sitter/tree-sitter-tsq mark tsq submodule as shallow * add tree-sitter-tsq to languages * add highlight queries for tsq * Update .gitmodules Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
* Add Vue tree sitter grammar (#787)Thomas Wehmöller2021-10-10
| | | | | | | * ✨ Add vue tree sitter support * Update .gitmodules Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
* Zig tree-sitter rework (#811)voroskoi2021-10-05
| | | | | - update tree-sitter-zig subproject - use highlights.scm from upstream, just use helix scopes - update indents.toml, this one actually works
* languages: add svelte submodule reference (#766)Raphael Megzari2021-09-19
|
* Update tree-sitter-ledger (#724)Ivan Tham2021-09-07
|
* Improve grammar definitionsBlaž Hrastnik2021-09-06
|
* OCaml support (#666)oberblastmeister2021-09-01
| | | | | | | | | | | | | | | | | | | | | * added some stuff * add interface * indent * highlights and locals * scope * change some stuff * add indents * fix blanket highlight * macro * use inherits
* Lua support (#665)oberblastmeister2021-09-01
| | | | | | | | | | | | | | | | | | | | | * added submodule * small changes * updated some stuff * remove * shallow clone * correct indent * shallow * ok * highlights * proper captures
* YAML support (#667)oberblastmeister2021-09-01
| | | | | | | | | | | | | * added submodule * remove wrong one * added highlights * use property * add indents * shallow
* Add zig tree-sitter support (#631)voroskoi2021-08-28
| | | | | | | * Add initial zig tree-sitter support * zig/highlights.scm: remove unnecessary queries * Add zig/indents.toml
* fix: add missing optional keyword to protobuf syntaxYusuf Bera Ertan2021-08-20
|
* feat: add indenting for protobufYusuf Bera Ertan2021-08-19
|
* feat: add protobuf tree-sitter parser with highlighting queriesYusuf Bera Ertan2021-08-19
|
* Add ledger tree-sitter (#572)Ivan Tham2021-08-16
| | | | Might need to update later since the current one highlight does not work very well yet.
* Add latexIvan Tham2021-06-16
|
* Add Nix syntaxTimothy DeHerrera2021-06-10
|
* Correct tree-sitter-haskell submodulenotoria2021-06-10
|
* Implement Debug for data structure as a featurenotoria2021-06-10
|
* changed flag in build_cpp '/std:c++14' to '/std:c++17' due to ↵Jan Hrastnik2021-06-06
| | | | tree_sitter_haskell not compiling on msvc without it
* Restored haskell syntaxCorey Powell2021-06-04
| | | | It seems to work
* Added missing tree-sitter-elixir submoduleCorey Powell2021-06-02
|
* Import tree sitter queries.Blaž Hrastnik2021-04-08
|
* Update tree-sitter grammars.Blaž Hrastnik2021-03-02
|
* syntax: Stop compiling haskell, seems unmaintained and slowest to compileBlaž Hrastnik2021-01-19
|
* added tab to insert modeJan Hrastnik2020-10-04
|
* Update grammar repos.Blaž Hrastnik2020-10-01
|