aboutsummaryrefslogtreecommitdiff
path: root/runtime
Commit message (Collapse)AuthorAge
...
* Add fixity keywords to haskell's highlights.scmOwen Shepherd2022-01-08
|
* Upgrade haskell queriesOwen Shepherd2022-01-08
|
* capture markdown link text as markup.link.text (#1456)Michael Davis2022-01-08
|
* add tree-sitter-regex (#1362)Michael Davis2022-01-06
| | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Fix null and boolean constants in tree-sitter-nix highlights queries (#1428)Philipp Mildenberger2022-01-06
|
* Add textobjects and indents to c and cpp (#1293)Sebastian Neubauer2022-01-04
| | | | | | | | | | Indentation of single line statements doesn't work, i.e. for (;;)<hit enter> leads to for(;;) <cursor here> Only blocks with curly braces are indented.
* Add llvm-mir highlighting (#1398)Sebastian Neubauer2022-01-04
| | | | | | | | | | | | | | | | | * Add injection regex for more languages To support embedding them in other languages like markdown. * Add llvm-mir highlighting LLVM Machine IR is dumped as yaml files that can embed LLVM IR and Machine IR. To support this, add a llvm-mir-yaml language that uses the yaml parser, but uses different injections to highlight IR and MIR. * Update submodule with fixed multiline comments Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
* Add everforest_light, change everforest_dark string color (#1412)WindSoilder2022-01-03
|
* Add basic indentation for languages without treesitter-based indentation ↵Triton1712022-01-03
| | | | | | | rules (always use the indent of the current line for a new line). (#1341) Fix several bugs in the treesitter indentation calculation. Co-authored-by: Triton171 <triton0171@gmail.com>
* Add LLVM TableGen highlighting (#1409)Sebastian Neubauer2022-01-03
| | | | | | | Add a tree-sitter grammar and highlights for TableGen files. TableGen and its grammar are described here: https://llvm.org/docs/TableGen/index.html Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
* Underline diagnostics in bogster theme (#1399)Martin Junghanns2022-01-02
|
* Fix markdown code-block highlightingFlakebi2022-01-01
| | | | | Markdown code blocks should be highlighted as a single block, so set injection.include-children.
* add tree-sitter-git-rebase (#1402)Michael Davis2021-12-30
| | | | | | | | | | | | | | | | | | | | | | | | | * add submodule on tree-sitter-rebase, add to languages * add basic highlights query * inject bash in execute statements * update tree-sitter-rebase * tree-sitter-rebase->tree-sitter-git-rebase * get injection working with tree-sitter-git-commit * set scope under source.gitrebase * unset include-children on commit message injections * Revert "unset include-children on commit message injections" This reverts commit 2ecee155ea8e229651920b291062c2ee84b47944. * fix generated language docs * use rebase_command scopes from tree-sitter-git-commit
* Add tree-sitter-git-diff (#1373)Michael Davis2021-12-29
| | | | | | | | | | | | | | | | | | | | | | * add submodule on tree-sitter-git-diff * add git-diff highlights * inject git-diff into git-commit * update tree-sitter-git-commit with fix for bad diff case * add git-diff to language support docs * include-children in diff injections This ensures that children nodes of $.message are included in the injection, such as $.user or issue/pr numbers. Without this change, diffs containing '#' or '@' characters can trip up the injection and be parsed separately. See https://github.com/helix-editor/helix/pull/1373#issuecomment-1001215629 * set diff language's scope as source.diff
* Improve llvm highlighting and queries (#1388)Sebastian Neubauer2021-12-29
| | | | | | | | * Improve llvm highlighting and queries The llvm tree-sitter parser was updated to support scopes and more accurate highlighting. * Group highlight expressions better
* Add ruby indents (#1372)Stuart Hinson2021-12-27
| | | | | * Add ruby indents * Include ruby in generated docs
* highlight rebase-commands as markup.rawMichael Davis2021-12-25
|
* tree-sitter-gitcommit->tree-sitter-git-commitMichael Davis2021-12-25
|
* add commented-out diff and rebase injection queriesMichael Davis2021-12-25
|
* add diff.{plus,minus,delta} to themesMichael Davis2021-12-25
|
* add gitcommit highlightsMichael Davis2021-12-25
|
* Add textobjects and indents to cmake (#1307)Sebastian Neubauer2021-12-25
|
* chore: update rose pine themes to support markup (#1353)chunghha2021-12-25
|
* Update onedark theme to use new scopes (#1297)Gokul Soumya2021-12-24
|
* Typo fix in ocaml indents.toml (#1342)Stuart Hinson2021-12-24
|
* Add precise rust queries for use, mod, as (#1339)Gokul Soumya2021-12-23
| | | | | | - Differentiates between `as` keyword as a binary type cast operator and import renamer. - `mod` and `use` are now under `@keyword.control.import`, but `mod` is a `@keyword` if used as `mod name;`.
* Support dockerfiles (#1303)Midnight Exigent2021-12-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * allow language.config (in languages.toml) to be passed in as a toml object * Change config field for languages from json string to toml object * remove indents on languages.toml config * fix: remove patch version from serde_json import in helix-core * Use same tree-sitter-zig as upstream/master * fix(completion_popup): Fixes #1256 * Update helix-term/src/ui/completion.rs * feat(languages): Add support for `Dockerfile`s * docs(cargo-xtask-docgen): * improvement(langs-dockerfile): Add `injection-regex` to `languages.toml` for `Dockerfile` * improvement(langs-dockerfile): Add injections.scm * Update .gitmodules Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
* Add fish highlighting (#1308)Sebastian Neubauer2021-12-21
| | | | The highlights were copied and modified from https://github.com/nvim-treesitter/nvim-treesitter/blob/master/queries/fish/highlights.scm
* Add dracula theme (#1258)Sebastian Zivota2021-12-20
| | | | | | | | | | | | | * Add dracula theme * remove unused colors * correctly name constant.character.escape * Change cursors and selections * add some missing ui scopes * sorting
* Improve rust syntax highlighting (#1295)Gokul Soumya2021-12-20
| | | | | - Highlight fragment specifiers (expr, tt, in macro definitions) with @type. - Highlight attributes as macros
* Highlight comments in c, cpp, cmake and llvm (#1309)Sebastian Neubauer2021-12-20
| | | Also, reuse the c injections in glsl
* Add tree-sitter-comment (#1300)Michael Davis2021-12-19
| | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Add link and quote queries for markdownGokul Soumya2021-12-19
| | | | | | | | | - 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).
* Improve yaml syntax highlighting highlighting (#1294)Gokul Soumya2021-12-19
|
* Add dart lsp config and queries (#1250)Luke Jones2021-12-18
| | | | | | | | | | | | | | | | * 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>
* Add scala syntax highlights (#1278)Oliver Hechtl2021-12-18
| | | | | | | | | | | | | * 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
* Fix more highlight scopesBlaž Hrastnik2021-12-17
|
* highlights: @include -> @keyword.control.importBlaž Hrastnik2021-12-17
|
* Partly fix julia's locals.scmBlaž Hrastnik2021-12-17
|
* Add indents.toml to perl (#1280)ath32021-12-17
|
* Add injections query for markdownBlaž Hrastnik2021-12-15
|
* Partly fix latex highlights and add markup scope docsBlaž Hrastnik2021-12-15
|
* Add markdown grammarBlaž Hrastnik2021-12-14
| | | | Fixes #215
* Add `ui.gutter` themingNNB2021-12-13
|
* Use `base16_tty` as 16-color default, fix theme nameOmnikar2021-12-13
|
* change to .unwrap_or_default() and fix ui.window and ui.statuslineNNB2021-12-13
|
* Fix error color, add tty themeNNB2021-12-13
|
* Load alt default theme if true color is not supportedOmnikar2021-12-13
| | | | | | | | | | | | | | | | | | | | * Move `runtime/themes/base16_default_terminal.toml` to `base16_theme.toml` alongside `theme.toml` * Use `terminfo` crate to detect whether the terminal supports true color and, if the user has no theme configured and their terminal does not support true color, load the alt default theme instead of the normal default. Remove `terminfo` dependency, use `COLORTERM` env instead Prevent user from switching to an unsupported theme Add `true-color-override` option If the terminal is wrongly detected to not support true color, `true-color-override = true` will override the detection. Rename `true-color-override` to `true-color`
* Fix Base16 Dark, add Base16 Light and TerminalNNB2021-12-13
| | | | Improve accuracy with line number and cursor color
* Fix solarized selection colors (#1236)Skyler Hawthorne2021-12-08
| | | | | | * do not select a foreground color in selections, as this eliminates syntax coloring * select lighter color for selections * Make non-primary cursor cyan instead of green