| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
|
|
| |
* highlight(scala): update to fix crash
tree-sitter-scala has recently add a fix to workaround segv crashes in other editors.
Not sure if it happens to Helix as well, but it's probably a good idea to use the latest.
* highlight(scala): String interpolator support
This captures String interpolator as `function`
Co-authored-by: Chris Kipp <ckipp@pm.me>
|
|
|
|
|
|
|
|
|
|
| |
There have been a lot of changes in tree-sitter/tree-sitter-scala,
including partial support for Scala 3 syntax and breaking changes in
some of the nodes.
This bumps up the grammar to the latest, and adjusts the queries.
Co-authored-by: Anton Sviridov <keynmol@gmail.com>
Co-authored-by: Chris Kipp <ckipp@pm.me>
|
|
|
|
| |
https://dhall-lang.org/
|
|
|
|
|
|
|
|
| |
The grammar now exposes the delimiter of raw-strings.
We can now inject the inner grammar in cases like:
const char* script = R"js(
alert('hello world!');
)js";
|
|
|
| |
See https://www.ponylang.io
|
|
|
|
|
|
|
| |
* Update highlights.scm
* Update highlights.scm
* Update themes.md
|
| |
|
|
|
| |
where the tree-sitter completely fails to parse incomplete code.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
HTML nodes should be combined injections in the markdown block
grammar. When nodes are together the highlighting works properly but
when there is markdown content between HTML nodes like in a `<details>`
tag, the highlighting of the closing tag breaks since tree-sitter-html
looks for opening and closing tags.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Add highlight scopes for golang built-in functions and types.
Based on https://pkg.go.dev/builtin.
|
| |
|
| |
|
|
|
|
|
|
| |
Update tree-sitter-go to latest with updated support for generics.
See: https://github.com/tree-sitter/tree-sitter-go/compare/0fa917a7022d1cd2e9b779a6a8fc5dc7fad69c75..05900faa3cdb5d2d8c8bd5e77ee698487e0a8611
for full diff.
|
|
|
|
|
|
|
| |
Both the racket and scheme entries used the rkt file-extension. This
commit removes that entry for scheme and so that the racket entry takes
precedence. We explicitly point to the scheme grammar now and setup
queries that inherit from scheme. This should enable using the racket
language server configuration.
|
|
|
|
| |
latex comments (#4922)
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
This update includes a handful of fixes, a new binary concatenation
operator (already highlighted by the `binary_operator` rule), and a
new `use` language construct. The nodes are backwards compatible but
this update introduces two new nodes for highlighting: `use` and `<-`.
|
|
|
|
|
| |
tree-sitter-heex split out the ending_expression_value from the
partial_expression value which can help with indentation.
|
|
|
|
|
|
|
| |
This doesn't work robustly (within pattern matches). Only regular
bindings are highlighted as parameters. In order to highlight all
parameters even in matches, we would need an arbitrary nesting operator
in queries which doesn't exist yet in tree-sitter.
|
|
|
|
|
|
| |
This highlights edoc within Erlang comments. The trick was to have
the Erlang grammar consume newlines and then give them to EDoc in the
injection to use so that line-wise elements could be parsed accurately.
|
|
|
| |
Fixes https://github.com/helix-editor/helix/issues/2771
|
| |
|
| |
|
| |
|
|
|
|
| |
Co-authored-by: Garrett D'Amore <garrett.damore@weka.io>
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
|
| |
|
| |
|
|
|
|
| |
Ref: https://github.com/tree-sitter/tree-sitter-rust/commit/3ddebf46e6fe5e27fa03dc07a829a766b9979c8d
|
|
|
|
|
|
|
|
|
| |
* fix(grammars): update treesitter grammar and queries
* add override keyword
* Update runtime/queries/typescript/highlights.scm
Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
|
|
|
|
|
|
|
| |
Without this scoped attribute macros are not matched as macros.
Eg
```
#[path::macro]
```
|
| |
|
| |
|
|
|
|
| |
Add indentation for `match` and `case`.
|
|
|
|
|
| |
Add syntax highlighting for `match` and `case` keywords in Python
(https://peps.python.org/pep-0636/).
|
| |
|
|
|
| |
added "if", "then", "else", "block", "loop", "end" and "mut" to the wat highlights.
|