aboutsummaryrefslogtreecommitdiffstats
path: root/queries/markdown
Commit message (Collapse)AuthorAgeFilesLines
* feat(markdown): fold sublistsRiley Bruins2025-03-031-1/+6
|
* 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-194-47/+69
|
* 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
|
* chore(injections)!: update injection syntax to 0.9Pham Huy Hoang2023-08-121-8/+17
| | | | | | | | | 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(markdown): elm injection no longer segfaultsAmaan Qureshi2023-06-211-1/+0
|
* fix(highlights): lower priority for codeblocks with injections (#4905)Christian Clason2023-06-051-5/+3
|
* feat: markdown indents (#4862)Pham Huy Hoang2023-05-261-0/+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
* fix: add @combined to markdown htmlPham Huy Hoang2023-05-031-1/+1
|
* feat(markdown): configured aliases for fenced code block languages (#4659)Benny Powers2023-04-181-3/+6
| | | | | | | | | * feat(markdown): configured aliases for languages * refactor: use vim.treesitter.match * refactor: rename local vars * fix: query syntax
* 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-292-1/+12
|
* fix(fold): don't include whitespace end regionsLewis Russell2022-09-121-6/+9
| | | | | | | | | | | | Some languages that are difficult to parse via Treesitter may incorrectly include whitespace lines at the end of regions. This can makes the calculated folds sub-optimal. To recitfy, use a custom directive (trim), to calculate the range with the trailing whitespace lines removed. Note this only works if the region end column is 0. Also added folds for Make.
* feat(spell): upstream spell queries from spellsitterLewis Russell2022-09-061-0/+2
|
* feat: allow to fold markdown sectionsZheng Piaodan2022-08-261-0/+1
|
* Support TOML metadata in Markdown injectionsAndy Freeland2022-07-251-4/+2
| | | | | Hugo, Zola, and likely other static site generators use `+++` for TOML, not YAML.
* fix: disable elm parser in markdown to avoid segfaultkiyan2022-07-151-0/+1
| | | | | the Elm parser segfaults when injected in markdown. Disable it for now. See https://github.com/elm-tooling/tree-sitter-elm/issues/124
* Use markdown metadata blocks for injectionMDeiml2022-07-031-1/+5
|
* feat(markdown)!: switch to split parser (#3048)Matthias Deiml2022-06-262-59/+10
| | | | | | | | * 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
|
* Only allow yaml at start of fileMDeiml2022-02-091-1/+1
|
* 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
|