Commit Graph

13 Commits (079f544260f4f5eaff08104bf07abd57bfb7b611)

Author SHA1 Message Date
David Else 928e3f0d85
Add regex injections into bash (#11112) 4 months ago
David Else 71df2428ee
Fix heredoc and add ansi_c_string highlights in bash queries (#11118) 5 months ago
Chris Sergienko 345e687573
feat: update bash grammar to latest tree-sitter-bash rev (#10526) 7 months ago
Daniel S Poulin 1abb64e48d
Add textobject for entries/elements of list-like things (#8150) 8 months ago
woojiq 52a43bcdfc
bash, make, css: highlight and indent queries improvement (#9393)
* highlights(bash): rework keywords section

* Use more specified scope when possible for keywords like @keyword.repeat.
* Add more keywords like "local" or "unsetenv".

Limitation:
* Bash doesn't allow you to have a local variable outside of a function, so maybe we need to have better queries to not highlight the local in this case.
* If we name a function with a keyword (such as unset or local), it will use the highlight scope "keyword" instead of "function".

* indents(css, make): add basic queries

* Despite the fact that queries look simple, they improve indentation in some edge cases that helix couldn't handle correctly by default.
10 months ago
Petr Gajdůšek 9f6e9a1512
Add 'while_statement' to bash indents (#8528) 1 year ago
Petr Gajdůšek 7af37bb3b9
Add tree-sitter textobjects queries for bash (#7764)
This implements function, (calling) argument and comment captures for use
in the textobject selections in bash.

This also updates the generated docs after adding the textobjects for bash.
1 year ago
gavincrawford 012fc12f97
Add Bash indents (#5149) 2 years ago
ath3 45add73fb1
AWK support (#3528) 2 years ago
joezak11 deb7ee6595
Update bash tree sitter (#1917) 3 years ago
Mathis Brossier fd7080498e
tree sitter comments injections (#1527)
* tree sitter comments injections

* trailing newlines & julia fix

* Update runtime/queries/julia/injections.scm

Co-authored-by: Michael Davis <michael.davis@nfiindustries.com>

Co-authored-by: Michael Davis <michael.davis@nfiindustries.com>
3 years ago
Kirawi ee889aaa85
Updated tree-sitter query scopes (#896)
* 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
3 years ago
Blaž Hrastnik 4e31d1521b Add tree-sitter queries. 4 years ago