aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries
Commit message (Collapse)AuthorAge
...
* 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 gitcommit highlightsMichael Davis2021-12-25
|
* Add textobjects and indents to cmake (#1307)Sebastian Neubauer2021-12-25
|
* 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
* 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 llvm grammar (#1167)Kirawi2021-11-29
|
* Add language support for WGSL (#1166)Kirawi2021-11-27
|
* Add json indents.toml file (#1055)Mateusz S. Szczygieł2021-11-10
| | | | | | | * add glsl language support * glsl: use indents.toml file * add json indents.toml
* glsl support (#993)Mateusz S. Szczygieł2021-11-08
| | | | | * add glsl language support * glsl: use indents.toml file
* Perl support (#978)ath32021-11-08
|
* Updated tree-sitter query scopes (#896)Kirawi2021-11-03
| | | | | | | | | | | | | | | | | | * 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
* Add indents definition based on the one from nvim-treesitterDaniel Poulin2021-11-02
|
* update cpp queries (#930)Houkime2021-10-29
| | | Co-authored-by: Houkime <>
* fix: string.regex{=>p}Michael Davis2021-10-27
|
* use punctuation.special for interpolation #{ }Michael Davis2021-10-27
|
* Add treesitter textobjects (#728)Gokul Soumya2021-10-23
| | | | | | | | | | | | | | | | | | | | | | | | | * 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
* CMake support (#888)ath32021-10-22
|
* Merge pull request #830 from the-mikedavis/official-elixir-tree-sitterBlaž Hrastnik2021-10-18
|\ | | | | prefer elixir-lang/tree-sitter-elixir
| * scope arities in captures as operatorsMichael Davis2021-10-17
| |
| * use special.string.symbol instead of symbolMichael Davis2021-10-17
| | | | | | | | this aligns better with how ruby highlights symbols
| * use latest tree-sitter-elixir with 'not in' query supportMichael Davis2021-10-17
| | | | | | | | connects https://github.com/elixir-lang/tree-sitter-elixir/issues/9
| * align highlight scopes with documented scopesMichael Davis2021-10-17
| |
| * highlight calls to erlang modules as typesMichael Davis2021-10-17
| | | | | | | | connects https://github.com/elixir-lang/tree-sitter-elixir/pull/5
| * add LICENSE snippet at elixir hightlights topMichael Davis2021-10-17
| |
| * use the warning type for tree-sitter ERRORsMichael Davis2021-10-17
| |
| * describe atoms as tagsMichael Davis2021-10-17
| |
| * add highlights query from elixir-lang/tree-sitter-elixirMichael Davis2021-10-17
| |
* | Add indents for python, but it's not perfect. (#837)WindSoilder2021-10-18
|/ | | | | * add indents for python, but it's not Perfect * add last line