aboutsummaryrefslogtreecommitdiffstats
path: root/queries/vim/highlights.scm
Commit message (Collapse)AuthorAgeFilesLines
* feat(vim): highlight prepend operatorOmar Valdez2024-11-211-0/+1
|
* fix(vimscript): miscellaneous fixupsRiley Bruins2024-04-191-2/+7
| | | | | | - Highlights the `abort` keyword - Moves `is(not)?` from `@operator` to `@keyword.operator` - Highlights the `->` operator
* refactor(format): drop extra indentation for fieldPhạm Huy Hoàng2024-03-211-7/+5
|
* feat(vim): highlight keycodesObserverOfTime2024-01-241-0/+2
|
* fix(highlights): improve member/property distinctionObserverOfTime2024-01-191-1/+1
|
* chore: query formattingPham Huy Hoang2024-01-191-91/+143
|
* feat!: align standard captures with upstreamChristian Clason2024-01-191-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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`
* fix(vim): highlight 'scriptencoding' commandObserverOfTime2023-12-091-0/+5
|
* feat(vim): add the builtin `sign` command (#5322)Kevin Svetlitski2023-08-271-0/+1
|
* perf: remove match where possibleAmaan Qureshi2023-04-211-1/+1
|
* highlights: create subscoping for ternary operatorStephan Seitz2022-12-021-1/+1
| | | | | | | | | | After https://github.com/nvim-treesitter/nvim-treesitter/issues/470, we decided to use `@conditional` for ternary operator instead of operator despite `@conditional` is documented for keywords only. A sub-scoping can make it easier for people to highlight this operator group differently. Also unify the usage of `@conditional...` across languages.
* Update lockfile.jsonGitHub2022-11-211-2/+15
|
* highlights(vim): add some more keywordsObserverOfTime2022-10-151-0/+6
|
* feat(viml): update queriesChristian Clason2022-10-151-1/+12
|
* feat(viml): bump parser and queriesChristian Clason2022-09-081-7/+11
|
* feat(viml): update queriesChristian Clason2022-08-261-2/+15
|
* chore(vim): update parser and highlightsThomas Vigouroux2022-08-231-4/+2
| | | | | Adds support for map_bar. Correctly highlight unknown builtin commands.
* feat(vim): update to latest highlightsThomas Vigouroux2022-08-231-0/+18
|
* update vim parser and queriesChristian Clason2022-08-171-1/+5
|
* Split func/method definition from calls in several programming language querieslfenzo2022-08-031-1/+1
|
* feat(vim): add support for constThomas Vigouroux2022-05-011-0/+1
|
* feat(vim): highlight unknown commandsThomas Vigouroux2022-04-161-1/+4
|
* fix(vim): fix highlight for patternPierrick Guillaume2022-02-191-2/+2
| | | | Allow pattern to not contain pattern_multi node to be highlighted
* add(vim): add highlight for more keywordsPierrick Guillaume2022-02-081-1/+18
|
* feat(vim): highlight default parametersZoltán Reegn2022-02-071-1/+2
|
* feat(vim): highlight "higlight" variantsThomas Vigouroux2022-01-241-0/+8
|
* feat(vim): support syntax commandThomas Vigouroux2022-01-241-1/+8
|
* Prefer lua-match over matchLewis Russell2021-11-231-1/+1
| | | | as string.find is much quicker than vim.regex:match*
* fix(vim): support syntax command and update parserThomas Vigouroux2021-10-011-0/+16
|
* Vim: highlight setlocal (#1877)Santos Gallegos2021-09-301-0/+1
| | | This was just added some days ago.
* Vim: update highlights and injectionsSantos Gallegos2021-09-271-0/+9
|
* feat(vim): highlight highlight_statement correctlyThomas Vigouroux2021-08-261-4/+9
| | | | Fixes #1747
* Viml: update queriesSantos Gallegos2021-08-231-4/+26
|
* feat(vim): support augroupsThomas Vigouroux2021-08-201-1/+5
|
* fix(viml): update and support mappingsThomas Vigouroux2021-08-201-0/+10
|
* fix(vim): highlight more punctuationThomas Vigouroux2021-08-161-0/+14
|
* feat: add support for vimThomas Vigouroux2021-08-161-0/+105