aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries
Commit message (Collapse)AuthorAge
...
* Use split_parser branch for markdown grammar (#3108)Matthias Deiml2022-08-06
|
* Rust queries: add `(function_item)` as a local scope (#3345)ChrHorn2022-08-06
|
* Fix php hightlight (#3317)Erasin2022-08-05
| | | Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* Inherit javascript/typescript from common 'ecma' queries (#3301)Michael Davis2022-08-03
| | | | | | | JavaScript queries now contain a few lines that prevent them from being used whole-sale in typescript with `; inherits: javascript`. Here we follow nvim-treesitter's way of using a fake 'ecma' language as a common base for JavaScript and TypeScript to share as much as we can.
* Improve Python queries, add locals (#3284)ChrHorn2022-08-01
|
* javascript queries: fix parameters (#3280)ChrHorn2022-08-01
|
* feat: add cue support (#3262)Banst2022-07-31
|
* Add Graphviz Dot lang support (#3241)Erasin2022-07-30
| | | Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* Add textobject for javascript (#3213)Erasin2022-07-28
|
* Remove let_declaration from Rust locals tracking (#3212)Michael Davis2022-07-28
|
* JS/TS highlighting improvements (#3219)Philipp Mildenberger2022-07-27
|
* Fix: Python hightlight (#3201)Erasin2022-07-26
|
* Improve python highlighting (#3103)Kirawi2022-07-26
| | | | | | | | | | | | | * improve python queries * update python grammar to `0.20.2` * fix variadic parameter scope * add punctuation scopes * fix order of punctuation scopes * undo `embedded` delete
* feat(tree-sitter): :sparkles: add go template support (#3091)Daniel Longeuay2022-07-26
| | | | | | | * feat(tree-sitter): :sparkles: add go template support * fix(tree-sitter): :bug: go template highlight scope selectors * chore(tree-sitter): :wrench: update go template grammar commit
* Add elixir & heex comment textobjects (#3179)Clay2022-07-26
|
* 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
|