aboutsummaryrefslogtreecommitdiffstats
path: root/queries/bash/highlights.scm
Commit message (Collapse)AuthorAgeFilesLines
* feat!: drop modules, general refactor and cleanupChristian Clason2025-05-121-261/+0
|
* 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): 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
|
* 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-211-6/+5
|
* 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-191-81/+115
|
* 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(bash): update parser and queriesAmaan Qureshi2023-08-301-0/+2
|
* fix(bash): update queries from upstream (#5321)Amaan Qureshi2023-08-261-1/+0
|
* feat(bash): add missing highlightsAmaan Qureshi2023-08-241-7/+32
|
* feat(bash): improve highlightsObserverOfTime2023-08-241-35/+47
|
* 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
|
* 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
|
* 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
|
* feat: Add more bash queriesMike2020-12-251-0/+1
| | | | | Add missing fold queries Add "function" to keywords highlights
* remove duplication of query for numberDavid Hotham2020-12-251-6/+2
|
* match test for regexDavid Hotham2020-12-251-0/+3
|
* fixes to bash highlightingDavid Hotham2020-12-251-7/+7
|
* Bash highlights: reset highlighting in expansionStephan Seitz2020-12-141-0/+4
|
* Bash: update highlightsSantos Gallegos2020-09-191-7/+10
| | | | | | | | | Following some of our conventions and some bits from atom https://github.com/atom/language-shellscript/blob/master/grammars/tree-sitter-bash.cson: - Uppercase var are constants - `$` is a special symbol, not part of the name - Builtin constants and functions
* Bash: fix hl capture groupsSantos Gallegos2020-09-131-4/+6
| | | | Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/387
* ci: fix wrong queriesThomas Vigouroux2020-09-111-2/+2
|
* fix bash highlightkyazdani422020-09-061-1/+1
|
* fix(queries): use vim-match for non lua regexesSteven Sojka2020-08-161-9/+9
|
* add highlight queries for bashTravonteD2020-06-231-0/+110