aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries
Commit message (Collapse)AuthorAge
...
* Fix: svelte indets.scm (#3147)Erasin2022-07-24
|
* Improve HEEx comment highlights, inject comment lang (#3170)Clay2022-07-24
|
* Replace '; inherits <language>' in treesitter queries with <language> ↵Philipp Mildenberger2022-07-22
| | | | | queries instead of appending them (#2470) Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
* Fix locals tracking in Rust closures (#3027)Michael Davis2022-07-20
| | | | | | | | | | The fix comes from the rewriting of the `closure_parameters` stanza: it was capturing the entire `closure_parameters` node including paretheses, whitespace, and commas. Capturing the identifiers within fixes the tracking. In order to make sure locals definitions from closure parameters don't leak out of the body of the closure, though, we should also mark the closure itself as a locals scope.
* Add SCSS language support (#3074)Joe2022-07-17
|
* Add textobjects.scm to GLSL (#3051)Mateusz S. Szczygieł2022-07-12
|
* Added ungrammar language support (#3048)Philipp Mildenberger2022-07-12
|
* add fortran language (#3025)Austen LeBeau2022-07-10
|
* Introduce storage highlighting for typescript/javascript (#2961)Jake Langford2022-07-06
|
* Remove broken ledger tag highlight (#2988)Ivan Tham2022-07-06
|
* Fix some typos (#2978)A-Walrus2022-07-06
|
* Update tree-sitter-ledger (#2936)Ivan Tham2022-07-05
|
* 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
|