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
Michael Davis
e72786df8e
Add tree-sitter-comment ( #1300 )
...
* 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>
2021-12-19 23:56:56 +09:00
Kirawi
ee889aaa85
Updated tree-sitter query scopes ( #896 )
...
* 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
2021-11-03 12:00:52 +09:00
Michael Davis
7e6ade9290
fix: string.regex{=>p}
2021-10-27 10:03:33 +09:00
Michael Davis
bf20e51044
use punctuation.special for interpolation #{ }
2021-10-27 10:03:33 +09:00
Michael Davis
4d8eb09b7c
scope arities in captures as operators
2021-10-17 10:50:20 -05:00
Michael Davis
80b54f2f69
use special.string.symbol instead of symbol
...
this aligns better with how ruby highlights symbols
2021-10-17 10:50:20 -05:00
Michael Davis
8f658f0dce
use latest tree-sitter-elixir with 'not in' query support
...
connects https://github.com/elixir-lang/tree-sitter-elixir/issues/9
2021-10-17 10:50:20 -05:00
Michael Davis
4771cc7ee4
align highlight scopes with documented scopes
2021-10-17 10:50:20 -05:00
Michael Davis
c502cafecc
highlight calls to erlang modules as types
...
connects https://github.com/elixir-lang/tree-sitter-elixir/pull/5
2021-10-17 10:50:20 -05:00
Michael Davis
b2655a7f5c
add LICENSE snippet at elixir hightlights top
2021-10-17 10:50:19 -05:00
Michael Davis
95ab40d171
use the warning type for tree-sitter ERRORs
2021-10-17 10:50:19 -05:00
Michael Davis
5db248cc1c
describe atoms as tags
2021-10-17 10:50:19 -05:00
Michael Davis
d1b434d230
add highlights query from elixir-lang/tree-sitter-elixir
2021-10-17 10:50:19 -05:00
Corey Powell
35feb614b6
Updated elixir queries to fix crash
2021-06-09 00:07:44 +09:00
Corey Powell
ca042a4bde
Added elixir syntax
...
Using custom fork for now to get around generating the source files
2021-06-01 21:59:16 -05:00