aboutsummaryrefslogtreecommitdiffstats
path: root/queries/bash
Commit message (Collapse)AuthorAgeFilesLines
* feat!: drop modules, general refactor and cleanupChristian Clason2025-05-124-363/+0
|
* fix(bash): offset injection contentvanaigr2024-12-311-12/+12
|
* feat(bash): highlight redirectionsOmar Valdez2024-11-211-1/+4
|
* feat(bash): highlight more builtin commandsOmar Valdez2024-10-301-5/+5
| | | | | | | | Commands: - `.` - `:` - `true` - `false`
* feat(bash): highlight special shell variablesOmar Valdez2024-10-251-0/+19
|
* feat(bash): readline injections (#6947)Omar Valdez2024-07-191-0/+12
| | | | | | | | | | | * feat(bash): Readline injections * Update queries/bash/injections.scm Co-authored-by: Riley Bruins <ribru17@hotmail.com> --------- Co-authored-by: Riley Bruins <ribru17@hotmail.com>
* feat(bash): Highlight declaration and unset command parameters (#6634)Omar Valdez2024-05-221-0/+6
|
* feat: standardize and document export keywordsRiley Bruins2024-05-131-1/+2
| | | | | | Many export keywords are captured as `@keyword.import`. This commit makes it so they are all captured like that, and mentions it in the documentation.
* feat(bash,fish): deactivate spelling in shebangsKai Moschcau2024-05-011-1/+1
|
* fix(bash): fix printf injection queries (#6405)David Guevara2024-04-051-9/+27
|
* feat(bash): align substitutions with expansionsmichaelPotter2024-03-241-2/+7
| | | | | | | | | The bash manual[1] considers command and process substitutions to be forms of expansions, so they should be highlighted the same as other expansions. This is traditionally how they have been highlighted in the past too. [1] https://www.gnu.org/software/bash/manual/html_node/Shell-Expansions.html
* refactor(format): drop extra indentation for fieldPhạm Huy Hoàng2024-03-212-21/+17
|
* feat(format-scripts): linewrap predicates再生花2024-02-231-13/+16
| | | "format-ignore".kick()
* fix(bash): unordered concatenation highlightsRiley Bruins2024-02-181-4/+0
|
* chore(bash): update parser and highlightsAmaan Qureshi2024-02-101-0/+1
|
* feat(bash) Highlight concatenated words as stringsMiles Frain2024-01-251-0/+7
|
* chore: query formattingPham Huy Hoang2024-01-193-97/+149
|
* refactor: manual pre-cleanupPham Huy Hoang2024-01-191-1/+2
| | | | | Moving comments, adding `format-ignore` to lines that will be better with it
* feat!: align standard captures with upstreamChristian Clason2024-01-191-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Sharing highlight queries with upstream tree-sitter and Helix is difficult. Solution: Where reasonable, use capture names in tree-sitter's standard list or Helix's Atom-style hierarchy. Specifically: * tree-sitter "standard capture names" (https://github.com/tree-sitter/tree-sitter/blob/3f44b896852eb7daaa6df4fb778c9bb52c70c815/highlight/src/lib.rs#L20-L72): - `@parameter` -> `@variable.parameter` - `@field` -> `@variable.member` - `@namespace` -> `@module` - `@float` -> `@number.float` - `@symbol` -> `@string.special.symbol` - `@string.regex` -> `@string.regexp` - `@text.*` -> `@markup.*` (`strong`, `italic`, `link`, `strikethrough`; with exceptions; see below) - `@text.title` -> `@markup.heading` - `@text.literal` -> `@markup.raw` - `@text.reference` -> `@markup.link` - `@text.uri` -> `@markup.link.url` (in markup links) - `@string.special` -> `@markup.link.label` (non-url links) - `@punctuation.special` -> `@markup.list` (markdown lists only; move subitems from `@text.todo`) * Helix captures (https://docs.helix-editor.com/master/themes.html#syntax-highlighting): - `@method` -> `@function.method` - `@method.call` -> `@function.method.call` - `@text.{todo,warning,note,danger}` -> `@comment.{error,warning,hint,info,todo}` - `@text.diff.{add,delete,}` -> `@diff.{plus,minus,delta}` - `@text.uri` -> `@string.special.url` (outside markup) - `@preproc` -> `@keyword.directive` - `@define` -> `@keyword.directive`(`.define`?) - `@storageclass` -> `@keyword.storage` - `@conditional` -> `@keyword.conditional` - `@debug` -> `@keyword.debug` - `@exception` -> `@keyword.exception` - `@include` -> `@keyword.import` - `@repeat` -> `@keyword.repeat` * cleanup - remove some redundant `@conceal` (but still allow it for conceal-only patterns) - remove obsolete `@error` (syntax linting is out of scope for this repo) - sort, cleanup capture list in `CONTRIBUTING.md`
* feat(injections): add printf format stringsObserverOfTime2024-01-191-0/+25
|
* feat(locals)!: switch to upstream capturesChristian Clason2024-01-191-5/+5
|
* feat(bash): update parser and queriesAmaan Qureshi2023-08-301-0/+2
|
* fix(bash): update queries from upstream (#5321)Amaan Qureshi2023-08-262-5/+1
|
* feat(bash): add missing highlightsAmaan Qureshi2023-08-241-7/+32
|
* feat(bash): fold heredocsObserverOfTime2023-08-241-0/+1
|
* fix(bash): fix injectionsObserverOfTime2023-08-241-7/+9
|
* feat(bash): improve highlightsObserverOfTime2023-08-241-35/+47
|
* feat(bash): add heredoc injectionObserverOfTime2023-08-121-1/+7
|
* chore(injections)!: update injection syntax to 0.9Pham Huy Hoang2023-08-121-2/+4
| | | | | | | | | Since 0.9, @lang syntax is still available as fallback but will soon be deprecated. Because of that, new syntax should be adopted once 0.9 becomes the baseline requirements for nvim-treesitter - update health check - update doc
* fix(spell): do not spell check certain types of strings (#5203)Lewis Russell2023-08-071-1/+4
| | | | | | - Document that only certain kinds of strings are spell checked, and reasons why they may not. - Remove spell checking for bash strings.
* feat(bash): add various shell builtinsAkmadan232023-06-191-2/+9
|
* feat(bash): highlight `until` as `@repeat`Frank Bearoff2023-06-051-0/+1
|
* add "select" to @repeat highlight groupFrank2023-06-021-0/+1
|
* perf: remove match where possibleAmaan Qureshi2023-04-211-2/+2
|
* injections: add more regex injectionsObserverOfTime2022-11-271-0/+2
|
* fix(bash): Rename ansii_c_string to ansi_c_string. (#3702)ギャラ2022-10-231-1/+1
|
* highlights: use @preproc where appropriateObserverOfTime2022-10-151-0/+3
|
* highlights(bash): add all signal namesObserverOfTime2022-10-151-1/+3
|
* feat(spell): support more languagesLewis Russell2022-09-261-2/+2
|
* Split func/method definition from calls in several programming language querieslfenzo2022-08-031-1/+1
|
* highlights(bash): add more builtinsadrian52022-04-041-2/+2
|
* highlights(bash): add operators ">>", "<<"Stephan Seitz2022-03-161-0/+2
|
* folds(bash): fold at `c_style_for_statement`Stephan Seitz2022-01-091-0/+1
|
* highlights(bash): add `[[` `]]`lucy2021-12-141-0/+2
|
* highlights(bash): add process substitutionlucy2021-12-141-0/+3
|
* highlights(bash): highlight "((" "))"Stephan Seitz2021-11-281-0/+2
|
* Prefer lua-match over matchLewis Russell2021-11-231-2/+2
| | | | as string.find is much quicker than vim.regex:match*
* Use `@keyword.function` consistentlySergio Alejandro Vargas2021-07-061-1/+2
|
* Use #any-of? instead of #match? where posibleJoakker2021-06-251-1/+3
|
* Revert "Comment: use `@combined` to create just one tree per buffer (#1252)"Santos Gallegos2021-05-071-1/+1
| | | | This reverts commit 4a7a713c527f57c355bc817f16fc6d955b8cce9b.