helix/helix-syntax
Michael Davis a8fd33ac01
add tree-sitter-regex (#1362)
* 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
2022-01-06 23:00:00 +08:00
..
languages add tree-sitter-regex (#1362) 2022-01-06 23:00:00 +08:00
src Simplify replace dashes with underscore 2021-07-23 18:37:41 +09:00
build.rs Improve build error when a new grammar was added 2021-09-06 15:25:46 +09:00
Cargo.toml Release 0.6 2022-01-04 18:54:37 +09:00
README.md Add README for helix-syntax (#1312) 2021-12-21 12:38:32 +09:00

helix-syntax

Syntax highlighting for helix, (shallow) submodules resides here.

Differences from nvim-treesitter

As the syntax are commonly ported from https://github.com/nvim-treesitter/nvim-treesitter.

Note that we do not support the custom #any-of predicate which is supported by neovim so one needs to change it to #match with regex.