Commit Graph

1419 Commits (6ddadd3fa702bd7f4077abeef0a02a10fc381f45)

Author SHA1 Message Date
Nik Revenco 6ddadd3fa7 queries: highlight local closures 2025-07-12 14:35:13 +01:00
Nik Revenco 36c4fa6ab4 fix: `map_or_else` has both arguments as closures 2025-07-12 14:24:38 +01:00
Nik Revenco 9de1c7213b queries: `bar` in `let bar = || 4` is a function 2025-07-12 14:18:12 +01:00
Nik Revenco b5a07f9974 queries: `bar` in `foo::bar` is always a function when passed as arg 2025-07-12 14:11:22 +01:00
Nik Revenco 42db29a32d fix: highlight `_` in `[_]` as `@comment.unused` 2025-07-11 03:21:45 +01:00
Nik Revenco fd11bd26cb queries: improve `@function` highlights when passed as arguments 2025-07-11 03:16:35 +01:00
Nik Revenco 171dfc60e5
fix: highlight `floor` in `|> float.floor` as function in Gleam (#13813) 2025-06-21 14:50:52 -04:00
Nik Revenco 40a3fb9b92
feat: Improved syntax highlighting for Gleam (#13807) 2025-06-21 12:24:19 -05:00
Margret Riegert c96642125f
Update Crystal tree sitter and add support for ameba-ls (#13805)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2025-06-21 12:02:16 -05:00
Damir Vandic 3c6c221d45
Update gleam tree-sitter grammar (#13793) 2025-06-18 09:32:41 -05:00
Alan 6b94d70f20
chore: bump purescript grammar (#13782) 2025-06-18 09:11:28 -05:00
Michael Davis fed3edcab7
queries: Fix highlighting of '#' in CSS color hex codes
This was previously highlighted as `punctuation` because the capture
applied to the whole `(color_value)` node rather than the `"#"` child
node specifically.
2025-06-16 13:43:41 -04:00
CalebLarsen 1246549afd
Fix: update c++ highlights (#13772) 2025-06-16 08:04:22 -05:00
uncenter ada8004ea5
Highlight HTML entities (#13753) 2025-06-16 08:03:02 -05:00
uncenter 6e4ec96101
Highlight Ecma escape sequences (#13762) 2025-06-13 09:15:40 -05:00
CalebLarsen 62f270e5d2
chore: updated c,c++ highlights (#13747) 2025-06-12 09:28:09 -05:00
Caleb Larsen 091f19f67c chore: updated themes using 'comment.block.documentation' to also use 'comment.line.documentation' 2025-06-10 10:54:05 -04:00
Caleb Larsen ae3eac8aeb fix: Rust now correctly highlights doc comments as @comment.{block,line}.documentation instead of @comment 2025-06-10 10:54:05 -04:00
spentbliss 7092e30f8d
feat(colorscheme): add lapis_aquamarine colorscheme (#13726)
Co-authored-by: spentbliss <spentbliss@users.noreply.github.com>
2025-06-10 09:44:30 -05:00
CalebLarsen 2b26d27416
fix: re-ordered and updated python highlights (#13715) 2025-06-08 21:34:37 -04:00
Grey e773d6cc92
feat: add luau grammars and lsp (#13702)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2025-06-08 15:21:08 -04:00
Michael Davis 25b299abc5
queries: Recognize methods as a locals scope
This fixes a bug in highlighting parameter variables in Go methods.
See <https://redirect.github.com/helix-editor/helix/issues/13674#issuecomment-2935514099>
2025-06-06 11:48:18 -04:00
Matt Conway d375f1e7f4
syntax: add grammar and highlighting for the alloy config lang (#13660) 2025-06-06 10:02:30 -05:00
Nik Revenco 2baff46b25
fix: Some Incorrect Rust highlights (#13657)
Co-authored-by: Nik Revenco <154856872+NikitaRevenco@users.noreply.github.com>
2025-05-31 09:43:19 -05:00
Jonas Köhnen 921ca08e1b
highlights/go: fix locals clashing with variable.other.member (#13644) 2025-05-31 09:41:19 -05:00
Jeff Bencin 17fb12bcf3
feat: Add Clarity language support (#13647) 2025-05-31 09:11:16 -05:00
Binh Tran 8d58f6ce8d
fix(highlights/ungrammar): improve UX (#13607) 2025-05-25 08:47:10 -05:00
Nik Revenco 1023e8f964
feat: highlight rust string interpolation macros that use `format_args!` (#13533)
Co-authored-by: Nik Revenco <154856872+NikitaRevenco@users.noreply.github.com>
2025-05-24 10:02:32 -05:00
Christian Fredrik Johnsen cb1ec1b27e fix(tutor): replace unexisting and non existing with nonexistent
Sounds more natural to me.
Just a spelling change.
2025-05-24 10:29:46 -04:00
Christian Fredrik Johnsen 4098151591 fix(tutor): fix typos in section 11.2
Minor grammar fix and add missing word.
2025-05-24 10:29:46 -04:00
Christian Fredrik Johnsen 1edf98262c fix(tutor): recommend `e` instead of `w` for selecting word
I was doing the tutorial to learn Helix, and it's more sensible to use
`e` than `w`.

If you're using `w`, you will need to add an extra space.
Example, assuming cursor is at |:

This sentence has incorrect words |behind it.

If you use `wc`, then you will get:
This sentence has incorrect words |it.

while `ec` will give you
This sentence has incorrect words | it.

Which enables you to drop removing and adding a space for no reason.
2025-05-24 10:29:46 -04:00
Kris Warner b70b8df916
Add matching cursor to nord theme (#13574) 2025-05-24 09:22:23 -05:00
Binh Tran ae0dd313bd
fix(highlights/ini): make consistency with toml (#13589) 2025-05-22 08:52:51 -05:00
CalebLarsen ebf96bd469
Updated python/locals.scm to label `self` and `cls` as `variable.buitin` (#13552) 2025-05-17 09:43:21 -05:00
Michael Davis 05ae617e1c
queries: Reorder Slint and HTML injections in Rust
This fixes injections of Slint and HTML in Rust macros. These patterns
must be moved after the generic `(macro_invocation (token_tree))`
pattern since they are more specific, and later patterns now take
priority.

See <https://redirect.github.com/helix-editor/helix/pull/12972#issuecomment-2888300442>.
2025-05-17 08:48:01 -04:00
CalebLarsen df02ef6a99
Update tree-sitter-haskell (#13475) 2025-05-17 07:42:52 -05:00
zoey 6be38642f4
Add nyxvamp themes (#12185) 2025-05-14 08:52:00 -05:00
Michael Davis f46222ced3
Revert "feat: Highlight Rust String interpolation macros"
This reverts commit 9bb80a74e1.
2025-05-13 19:52:48 -04:00
Nikita Revenco 9bb80a74e1
feat: Highlight Rust String interpolation macros
Fixes #5845
2025-05-13 19:31:42 -04:00
Michael Davis be1cf090c3
queries: Inject markdown into Rust doc comments
Co-authored-by: Nik Revenco <154856872+nik-rev@users.noreply.github.com>
2025-05-13 19:01:10 -04:00
Michael Davis a3b64b6da2
queries: Rewrite all locals 2025-05-13 19:01:10 -04:00
Aitor 908b9edf28
add support for tree-sitter custom template languages on vue (#13511)
Co-authored-by: TheSylex <TheSylex@users.noreply.github.com>
2025-05-12 08:23:59 -05:00
Bryce Berger 4c8600967c
verilog: add highlighting for the "var" keyword (#13493) 2025-05-10 08:08:34 -05:00
Jules Wiriath 313ef30f64
bump: tree-sitter-cpp (#13504) 2025-05-10 08:00:05 -05:00
David Else e4ef096945
Update Bash highlights (#13477) 2025-05-08 08:22:14 -05:00
Nik Revenco 1460a086df
feat: add wgsl built-in functions to `@function.builtin` (#13479)
Co-authored-by: Nik Revenco <154856872+NikitaRevenco@users.noreply.github.com>
2025-05-08 07:56:36 -05:00
Sean Russell 51d3b15557
Update tree-sitter-v (#13469)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2025-05-07 17:38:07 -05:00
Remo Senekowitsch e53462c78c
verilog: separate highlighting of keyword operators (#13473) 2025-05-06 08:24:14 -05:00
Rotem Horesh cbac427383
feat: add a tree-sitter grammar and highlights for dunst's config (#13458) 2025-05-05 09:08:33 -05:00
CalebLarsen 46cb177792
feat: add basic Slang support (#13449)
Co-authored-by: uncenter <uncenter@uncenter.dev>
2025-05-05 09:03:40 -05:00