Gokul Soumya
f1c634326b
Improve rust syntax highlighting ( #1295 )
...
- Highlight fragment specifiers (expr, tt, in macro
definitions) with @type.
- Highlight attributes as macros
3 years ago
Sebastian Neubauer
23091c9d29
Highlight comments in c, cpp, cmake and llvm ( #1309 )
...
Also, reuse the c injections in glsl
3 years ago
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>
3 years ago
Gokul Soumya
7c01d92653
Add link and quote queries for markdown
...
- Rename markup.underline.link to markup.link.url
- Add markup.link.label
- Add markup.quote
(The constructor theme scope was missing from the
docs, so unrelated to this commit).
3 years ago
Gokul Soumya
d52eda5d1b
Improve yaml syntax highlighting highlighting ( #1294 )
3 years ago
Luke Jones
edf3c70c30
Add dart lsp config and queries ( #1250 )
...
* 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>
3 years ago
Oliver Hechtl
0683f0a20a
Add scala syntax highlights ( #1278 )
...
* 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
3 years ago
Blaž Hrastnik
5d91335d6b
Fix more highlight scopes
3 years ago
Blaž Hrastnik
9c484e88cf
highlights: @include -> @keyword.control.import
3 years ago
Blaž Hrastnik
78b6155292
Partly fix julia's locals.scm
3 years ago
ath3
a8060c06d1
Add indents.toml to perl ( #1280 )
3 years ago
Blaž Hrastnik
ac4b72fcc8
Add injections query for markdown
3 years ago
Blaž Hrastnik
40969ad452
Partly fix latex highlights and add markup scope docs
3 years ago
Blaž Hrastnik
49e0678741
Add markdown grammar
...
Fixes #215
3 years ago
Kirawi
6f1a7b1220
Add llvm grammar ( #1167 )
3 years ago
Kirawi
4ec20eaeff
Add language support for WGSL ( #1166 )
3 years ago
Mateusz S. Szczygieł
e0540fbcc4
Add json indents.toml file ( #1055 )
...
* add glsl language support
* glsl: use indents.toml file
* add json indents.toml
3 years ago
Mateusz S. Szczygieł
3f0345ff58
glsl support ( #993 )
...
* add glsl language support
* glsl: use indents.toml file
3 years ago
ath3
30744646cb
Perl support ( #978 )
3 years ago
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
3 years ago
Daniel Poulin
9e247bf6ee
Add indents definition based on the one from nvim-treesitter
3 years ago
Houkime
a1c7e55e3b
update cpp queries ( #930 )
...
Co-authored-by: Houkime <>
3 years ago
Michael Davis
7e6ade9290
fix: string.regex{=>p}
3 years ago
Michael Davis
bf20e51044
use punctuation.special for interpolation #{ }
3 years ago
Gokul Soumya
4ee92cad19
Add treesitter textobjects ( #728 )
...
* Add treesitter textobject queries
Only for Go, Python and Rust for now.
* Add tree-sitter textobjects
Only has functions and class objects as of now.
* Fix tests
* Add docs for tree-sitter textobjects
* Add guide for creating new textobject queries
* Add parameter textobject
Only parameter.inside is implemented now, parameter.around
will probably require custom predicates akin to nvim' `make-range`
since we want to select a trailing comma too (a comma will be
an anonymous node and matching against them doesn't work similar
to named nodes)
* Simplify TextObject cell init
3 years ago
ath3
787ba4f233
CMake support ( #888 )
3 years ago
Blaž Hrastnik
a03b12530c
Merge pull request #830 from the-mikedavis/official-elixir-tree-sitter
...
prefer elixir-lang/tree-sitter-elixir
3 years ago
WindSoilder
bb011f9fb2
Add indents for python, but it's not perfect. ( #837 )
...
* add indents for python, but it's not Perfect
* add last line
3 years ago
Michael Davis
4d8eb09b7c
scope arities in captures as operators
3 years ago
Michael Davis
80b54f2f69
use special.string.symbol instead of symbol
...
this aligns better with how ruby highlights symbols
3 years ago
Michael Davis
8f658f0dce
use latest tree-sitter-elixir with 'not in' query support
...
connects https://github.com/elixir-lang/tree-sitter-elixir/issues/9
3 years ago
Michael Davis
4771cc7ee4
align highlight scopes with documented scopes
3 years ago
Michael Davis
c502cafecc
highlight calls to erlang modules as types
...
connects https://github.com/elixir-lang/tree-sitter-elixir/pull/5
3 years ago
Michael Davis
b2655a7f5c
add LICENSE snippet at elixir hightlights top
3 years ago
Michael Davis
95ab40d171
use the warning type for tree-sitter ERRORs
3 years ago
Michael Davis
5db248cc1c
describe atoms as tags
3 years ago
Michael Davis
d1b434d230
add highlights query from elixir-lang/tree-sitter-elixir
3 years ago
Michael Davis
e216e9621e
Enable c-sharp language and highlights ( #861 )
3 years ago
Michael Davis
be428a295a
fix digit escapes in java & php highlights ( #846 )
3 years ago
Michael Davis
e069fb9dea
Add highlight support for tree-sitter-query language (tsq) ( #845 )
...
* 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>
3 years ago
Thomas Wehmöller
a7f49fa56f
Add Vue tree sitter grammar ( #787 )
...
* ✨ Add vue tree sitter support
* Update .gitmodules
Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
3 years ago
voroskoi
0e06c10d8c
Zig tree-sitter rework ( #811 )
...
- update tree-sitter-zig subproject
- use highlights.scm from upstream, just use helix scopes
- update indents.toml, this one actually works
3 years ago
Raphael Megzari
b2195e08b5
languages: add svelte support ( #733 )
...
* languages: add svelte support
* languages: add svelte injections
3 years ago
cbarrete
394cc4f30f
Update ledger treesitter injections ( #732 )
...
Co-authored-by: Cédric Barreteau <cbarrete@users.noreply.github.com>
3 years ago
Blaž Hrastnik
4cc562318a
Improve docs, fix up a few highlight scopes
3 years ago
Blaž Hrastnik
4ac29434cb
syntax: Add go & rust locals, improve tree-sitter error message
3 years ago
Blaž Hrastnik
2bef245b7a
At least partly highlight tsx
3 years ago
Blaž Hrastnik
d85a8adb27
Improve highlighting scopes
3 years ago
Blaž Hrastnik
9b9c3c77f8
runtime: Query improvements
3 years ago
Blaž Hrastnik
ade1a453ef
syntax: Improve go highlights
3 years ago