aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries
Commit message (Collapse)AuthorAge
* Update TSQ queries (#2960)Michael Davis2022-07-05
| | | | | | | | | | | | | | | | A few changes to make TSQ highlights better: * A parsing error has been fixed in the grammar itself * Previously tree-sitter-tsq did not parse the variables in predicates like `(#set! injection.language "javascript")` * Theme nodes as `tag` * The newly added node to the parser (from the above fix) is `variable` which takes over the `variable` capture from nodes * Highlight known predicates as `function` and unsupported predicates as `error` * This may help when translating queries from nvim-treesitter. For example `#any-of?` is a common one used in nvim-treesitter queries but not implemented in Helix or tree-sitter-cli. * Inject tree-sitter-regex into `#match?` predicates
* languages: added elvish (#2948)rsteube2022-07-03
|
* Disable tree-sitter python indents, use fallback for nowBlaž Hrastnik2022-07-01
| | | | | | | There's been a lot of complaints about the state of python indentation and the fallback actually works better until the solution proposed in https://github.com/helix-editor/helix/issues/763#issuecomment-1137894973= is implemented.
* markdown: limit raw block highlight to code fence contentMichael Davis2022-07-01
|
* erlang: highlight modules in behaviour attributesMichael Davis2022-07-01
|
* erlang: highlight records with macro namesMichael Davis2022-07-01
| | | | | | | | | You might use a macro like `?MODULE` to name a record: -record(?MODULE, {a, b, c}). With this fix, the record fields correctly get `variable.other.member` highlights.
* git-commit: fix highlight edge casesMichael Davis2022-07-01
| | | | | | | | | * branch message with current branch and diverged branch has been added to the parser * scissors used in verbose commits are marked as a punctuation delimiter * we could use comment instead since they're visually the same but IMO this works better
* erlang: fix '#match?' for specs/callbacksMichael Davis2022-07-01
|
* replace module captures with namespaceMichael Davis2022-07-01
| | | | | | `module` is undocumented and does not exist in other themes. The equivalent existing scope based on usage (Elixir for example) is `namespace`.
* html: highlight punctuationMichael Davis2022-07-01
| | | | | * `/>` as in self-closing tags like `<hr/>` * `=` as in the separator between attribute name and value `<a href="bar">`
* edoc: prevent rogue punctuation highlightsMichael Davis2022-07-01
| | | | | | | Punctuation highlights would show up outside of where they were valid, for example using parentheses in some text. This change prevents that by gating the captures to being under the named nodes in which they are valid.
* rust: fix highlight corner-casesMichael Davis2022-07-01
| | | | | | | | | * add punctuation highlights for commas as in function parameters * remove stray `variable.parameter` highlight * I couldn't find any regressions from this and it fixes an edge case I ran into (but sadly did not record 😓) * highlight `fn` as `keyword.function` * the theme docs have `fn` as an example so it seems fitting
* markdown: highlight punctuationMichael Davis2022-07-01
|
* erlang: highlight unary '#' as punctuation.bracketMichael Davis2022-07-01
| | | | | | | | | | | | | | | | | | The '#' character may either be interpreted as a map when used like so: %% Example 1 #{a => b} Or as an operator which updates an existing map when the left-hand side is an expression: %% Example 2 MyMap#{a => b} This commit changes the highlight to `punctuation.bracket` when used as a character in a literal map (example 1) and keeps the `operator` highlight when used for updating (example 2).
* erlang: highlight nullary macros as constantsMichael Davis2022-07-01
|
* support Bazel languages (#2903)Michael Davis2022-06-28
|
* add test textobjects queries for erlang,gleam,go,python,rustMichael Davis2022-06-21
|
* text-objects: add test capture & elixir queriesConnor Lay (Clay)2022-06-21
|
* adds missing tree-sitter-comment injection for js/ts (#2763)farwyler2022-06-20
|
* Add "<<=" operator to Rust syntax highlighting (#2805)A-Walrus2022-06-18
|
* HEEx: upgrade version and support new special_attribute node (#2800)Clay2022-06-17
|
* Add clojure language support (#2780)Axot2022-06-16
| | | Co-authored-by: Mateusz Ledwoń <mateusz.ledwon@iteo.com>
* Introduce storage_class highlight scope (#2731)Anton Romanov2022-06-14
|
* add prisma tree-sitter and lsp support (#2703)Ivan2022-06-12
| | | Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* capture rust closures as function textobjectsMichael Davis2022-06-07
| | | | | | | | | Closures like iter.map(|a| a + 1) Are sort-of functions, so `]f` or `maf` or `mif` can apply to them as well as named function definitions.
* add textobject queries for gleamMichael Davis2022-06-07
|
* add textobject queries for elixirMichael Davis2022-06-07
|
* add textobject queries for erlangMichael Davis2022-06-07
|
* support for openscad (#2680)farwyler2022-06-06
| | | Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* add tree-sitter-jsdoc (#2650)Michael Davis2022-06-03
|
* add tree-sitter-edoc (#2640)Michael Davis2022-06-02
| | | | | | | * add tree-sitter-edoc * fix escape character capture in markdown queries * add field negation operator "!" to tsq highlights
* Elixir: inject Markdown into docs, remove h sigil HEEx injection (#2619)Clay2022-05-31
| | | Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* feat(lang): Update Nix grammar & improve queries (#2472)Timothy DeHerrera2022-05-30
|
* Add Vlang tree-sitter in the languages.toml (#2526)pancake2022-05-28
| | | | Co-authored-by: pancake <pancake@nopcode.org> Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* update Erlang grammar and queriesMichael Davis2022-05-25
| | | | | | | | | | | | | The update to the grammar itself covers the case where the document is a single expression without a trailing newline such as "min(A, B)". A small change to the parser now parses these expressions correctly which improves the display of the function head in the signature help popup. The update to the queries marks 'andalso', 'orelse', 'not', etc. as `@keyword.operator` which improves the look - it looks odd to see operators that are words highlighted the same as tokens like '->' or '=:='.
* update Gleam grammar and queriesMichael Davis2022-05-25
| | | | | | | | | | | | | | | | | | | | | | | With respect to the queries: The locals scope for functions was not large enough, so a function's parameter could outlive the function body. To fix it, we just widen the scope to the `function` node. See also https://github.com/gleam-lang/tree-sitter-gleam/issues/25 With respect to the parser: An external scanner has been added that fixes the parsing of strings. Previously, a comment inside a string would act like a comment rather than string contents. See also https://github.com/gleam-lang/tree-sitter-gleam/issues/14#issuecomment-1129263640 A new constructor node has been added as well which makes type highlighting more fine grained. See also https://github.com/gleam-lang/tree-sitter-gleam/pull/29
* Add `parameter.around` text object queryAndrey Tkachenko2022-05-25
|
* Basic verilog support (#2552)Andrey Tkachenko2022-05-24
|
* Add Scheme supportBlaž Hrastnik2022-05-21
| | | | Skipped scm for now :/ it overlaps with tree-sitter-tsq
* Python highlight decorator attributePaul Scott2022-05-20
|
* Python highlight keyword argument as parameterPaul Scott2022-05-20
|
* Python handling highlighting parameters with defaultsPaul Scott2022-05-20
|
* Python highlight improvements: type, parameter etcPaul Scott2022-05-20
| | | | | | | | | | | | | * str, list, etc. handled as @function.builtin and @type.builtin * None and non-conforming type indentifiers as @type in type hints * class identifiers treated as @type * @constructor used for constructor definitions and calls rather than as a catch-all for type-like things * Parameters highlighted * self and cls as @variable.builtin * improved decorator highlighting as part of @function Re-ordering of some statements to give more accurate priority.
* Change python highlights.scm to more fully utilize the themes.Zeddicus4142022-05-20
| | | | | | | Create type keywords Allow _CONSTANTS to start with _ Highlight constants before constructors Move some keywords into @keyword.control
* Include macro attributes to impls, structs, enums, functions etc. ↵Andrey Tkachenko2022-05-20
| | | | textobjects (#2494)
* Add tree-sitter ssh client config queries (#2498)midnightexigent2022-05-18
| | | Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* feat(lang): add Meson language support (#2314)unrelentingtech2022-05-11
| | | https://mesonbuild.com/Syntax.html
* fix Markdown list highlighting (#2401)ChrHorn2022-05-07
|
* feat(languages): add odin language (#2399)Robert Walter2022-05-05
|
* feat(languages): git-ignore and git-attributes (#2397)Matthew Toohey2022-05-05
|