summaryrefslogtreecommitdiffstats
path: root/queries/vimdoc
Commit message (Collapse)AuthorAgeFilesLines
* refactor(queries): Remove quotes from properties in set! directiveOmar Valdez2024-07-281-2/+2
|
* feat(vimdoc): set url attribute for URLsGregory Anders2024-07-241-1/+2
|
* feat(vimdoc): update parser and queriesChristian Clason2024-06-041-5/+11
|
* fix(vimdoc): adapt to breaking Neovim changeChristian Clason2024-03-141-3/+9
| | | | | | | | | | Problem: https://github.com/neovim/neovim/commit/cb46f6e467268edf917cc3617b4c024a66b256de#diff-edf997b0c2d42d31828800641ac1f5a46487fe24a0d46ccf70bcd58a14f3868f introduced a regression on how `#set!` behaves with several matches in a single pattern, breaking conceals in, e.g., taglinks. Solution: Separate taglink etc. patterns into concealed marker and contents. Also add URL support for concealed markdown links.
* feat(vimdoc): highlight modelineObserverOfTime2024-03-131-0/+2
|
* feat(highlights)!: enforce documented captures (#6232)Christian Clason2024-03-031-8/+9
| | | | | | | | | | | | | | | Problem: Allowing undocumented "secret" (sub)captures makes it harder to write comprehensive colorschemes and catch inconsistent captures. Solution: Only allow captures listed in CONTRIBUTING.md. Add useful (cross-language) subcaptures and drop language-specific or too niche ones. Follow-up: Adding further `*.builtin` captures and changing queries to use them. Language-specific subcaptures should instead be added in user config or a custom language plugin.
* fix(comments)!: consolidate note capturesChristian Clason2024-01-201-2/+2
| | | | | Distinguishing `hint` and `info` is too confusing; it's enough to have `error`, `warning`, `todo`, and `note`.
* fix(highlights): use `markup.raw.delimiter` for fencesChristian Clason2024-01-201-3/+3
|
* chore: query formattingPham Huy Hoang2024-01-192-15/+42
|
* feat!: align standard captures with upstreamChristian Clason2024-01-191-22/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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`
* vimdoc: add note, warning, deprecated (#5817)Christian Clason2023-12-211-0/+6
|
* chore(injections)!: update injection syntax to 0.9Pham Huy Hoang2023-08-121-3/+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(highlights): lower priority for codeblocks with injections (#4905)Christian Clason2023-06-051-1/+1
|
* highlights(markup): distinguish heading level in queriesChristian Clason2023-05-131-4/+4
| | | | | also add a few queries from Helix and remove controversial code block conceal in Markdown
* chore(help)!: renamed to vimdocChristian Clason2023-04-012-0/+28