aboutsummaryrefslogtreecommitdiffstats
path: root/queries/markdown/highlights.scm
Commit message (Collapse)AuthorAgeFilesLines
* feat!: drop modules, general refactor and cleanupChristian Clason2025-05-121-123/+0
|
* feat(markdown): completely conceal codeblock fences on nightlyChristian Clason2025-02-251-2/+4
| | | | | Required to make https://github.com/neovim/neovim/pull/31324 work with nvim-treesitter.
* refactor(queries): Remove quotes from properties in set! directiveOmar Valdez2024-07-281-3/+3
|
* fix(markdown): capture entire heading lineRiley Bruins2024-06-141-12/+6
|
* feat(markdown): yaml, toml metadata highlights (#6360)Riley Bruins2024-03-261-0/+6
|
* feat(markdown): highlight link label delimiterRiley Bruins2024-03-071-0/+4
|
* feat(highlights)!: enforce documented captures (#6232)Christian Clason2024-03-031-10/+10
| | | | | | | | | | | | | | | 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: typosdundargoc2024-02-191-1/+1
|
* fix(highlights): use `markup.raw.delimiter` for fencesChristian Clason2024-01-201-1/+1
|
* fix(markdown): remove @none from code fencesRiley Bruins2024-01-201-2/+0
|
* chore: query formattingPham Huy Hoang2024-01-191-21/+47
|
* feat!: align standard captures with upstreamChristian Clason2024-01-191-39/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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(markdown): revert bullet conceals due to spacing issues (#5742)Riley Bruins2023-11-301-17/+21
|
* feat(markdown): conceals for bullets, block quotesRiley Bruins2023-11-191-0/+18
| | | | | | | * feat(markdown): conceals for bullets, block quotes * fix: remove conceals for block quotes, change list minus to em dash * fix(markdown): allow empty bullets to be concealed
* fix(markdown): set block quote priority within allowed rangeRiley Bruins2023-10-151-1/+1
|
* fix(markdown): give code blocks higher priority than block quotesRiley Bruins2023-10-151-1/+1
|
* feat(markdown): conceal triple backticks and HTML entitiesMaria José Solano2023-09-171-0/+8
|
* fix(highlights): lower priority for codeblocks with injections (#4905)Christian Clason2023-06-051-5/+3
|
* highlights(markup): distinguish heading level in queriesChristian Clason2023-05-131-19/+11
| | | | | also add a few queries from Helix and remove controversial code block conceal in Markdown
* markdown: add strikethrough and blockquote capturesChristian Clason2023-01-141-0/+2
|
* feat: added highlights for markdown checkboxesFolke Lemaitre2022-12-021-0/+4
|
* feat: conceal backslash escapeFolke Lemaitre2022-10-301-5/+4
|
* feat: markdown table highlights and inlineFolke Lemaitre2022-10-291-0/+8
|
* feat(spell): upstream spell queries from spellsitterLewis Russell2022-09-061-0/+2
|
* feat(markdown)!: switch to split parser (#3048)Matthias Deiml2022-06-261-56/+7
| | | | | | | | * switch to split markdown parser with separate block and inline parsers to improve performance * add exclude_children! directive (useful for something like Injected markdown incorrectly highlights indented docstrings #2212) * split markdown queries into block and inline ones and add the injection for inline into block grammar * add include_dir option to parser configs (needed because the two grammars don't live in the repos root directory) BREAKING CHANGE: downstream queries need to be adapted to new parser
* Simplify inline concealJonathan Lopez2022-06-221-12/+3
|
* Refactor markdown conceal codeJonathan Lopez2022-06-221-21/+25
|
* Conceal markdown linksJonathan Lopez2022-06-221-0/+22
|
* highlights(markdown): fix conceal captureStephan Seitz2022-04-151-1/+1
|
* highlights(markdown): conceal link markersStephan Seitz2022-04-151-0/+8
|
* highlights(markdown): conceal `emphasis_delimiter`Stephan Seitz2022-04-151-5/+6
|
* highlights(markdown): add conceal to fenced code blocksStephan Seitz2022-04-151-0/+7
|
* Highlight markdown `uri_autolink` as `@text.uri`Gustaf Lindstedt2022-03-141-1/+4
|
* Add highlight for markdown delimitersMDeiml2022-01-111-2/+6
|
* Fix slow startup times for markdown grammarMDeiml2022-01-101-2/+2
|
* Add highlight for quote markerMDeiml2022-01-081-0/+2
|
* highlights(markdown): `image_description` as referencenumToStr2022-01-071-4/+5
|
* highlights(markdown): image `!` as delimeternumToStr2022-01-071-0/+3
|
* highlights(markdown): `link_title` as string literalnumToStr2022-01-071-1/+4
|
* highlights(markdown): image `(` `)` `[` `]` as delemiternumToStr2022-01-071-1/+5
|
* improve markdown highlightingAlvaro Muñoz Sanchez2022-01-061-5/+13
|
* Markdown: update queriesSantos Gallegos2021-12-211-0/+1
|
* highlights(markdown): separate highlight for header marker and underline (#2129)Michael Chris Lopez2021-12-191-3/+12
|
* highlights(markdown): highlight link_text as @text.referenceMichael Chris Lopez2021-12-171-0/+1
|
* parsers: Add MDeiml/tree-sitter-markdown as markdown parserStephan Seitz2021-12-141-13/+27
| | | | Fixes #872
* Add inline html commentsjghauser2021-02-251-0/+2
|
* feat(languagetree): implement language treeThomas Vigouroux2020-10-191-0/+19
Allow the LanguageTree to be used as an option for highlighting. Co-authored-by: Santos Gallegos <stsewd@protonmail.com> Co-authored-by: Yazdani Kiyan <yazdani.kiyan@protonmail.com>