aboutsummaryrefslogtreecommitdiffstats
path: root/CONTRIBUTING.md
Commit message (Collapse)AuthorAgeFilesLines
* refactor(queries): Remove quotes from properties in set! directiveOmar Valdez2024-07-281-2/+2
|
* feat: standardize and document export keywordsRiley Bruins2024-05-131-1/+1
| | | | | | 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: more `@keyword.type` capturesRiley Bruins2024-05-011-1/+1
|
* feat(rust,lalrpop): `@attribute` for lifetimesJaehwang Jung2024-03-161-1/+1
| | | | `@keyword` is only for language-defined keywords.
* feat(highlights)!: remove non-keyword `@type.qualifier`Jaehwang Jung2024-03-161-1/+0
| | | | | | | | * blueprint: Don't specially highlight template_name_qualifier. This is similar to inheritance base class. Other languages don't highlight them specially. * eds: `@type` for all `*Type` keys * chatito: `@attribute` for variation
* feat(highlights)!: `@keyword.storage` → `@keyword.modifier`Jaehwang Jung2024-03-161-1/+0
|
* feat(highlights)!: keyword `@type.qualifier` → `@keyword.modifier`Jaehwang Jung2024-03-161-0/+1
|
* fix(comment): remove duplicate 'FIXME'Christian Clason2024-03-031-4/+4
|
* feat(highlights)!: enforce documented captures (#6232)Christian Clason2024-03-031-7/+17
| | | | | | | | | | | | | | | 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.
* docs(contributing): typos and examplesChristian Clason2024-01-211-9/+9
|
* fix(comments)!: consolidate note capturesChristian Clason2024-01-201-5/+4
| | | | | Distinguishing `hint` and `info` is too confusing; it's enough to have `error`, `warning`, `todo`, and `note`.
* docs: update CONTRIBUTING.md with formattingChristian Clason2024-01-191-6/+17
|
* feat!: align standard captures with upstreamChristian Clason2024-01-191-103/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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(locals)!: switch to upstream capturesChristian Clason2024-01-191-22/+22
|
* docs: improve description of `@type.definition` captureaMOPel2023-10-201-1/+1
| | | Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
* chore(injections)!: update injection syntax to 0.9Pham Huy Hoang2023-08-121-7/+20
| | | | | | | | | 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(spell): do not spell check certain types of strings (#5203)Lewis Russell2023-08-071-0/+4
| | | | | | - Document that only certain kinds of strings are spell checked, and reasons why they may not. - Remove spell checking for bash strings.
* fix(highlights): lower priority for codeblocks with injections (#4905)Christian Clason2023-06-051-4/+13
|
* docs: add a small note about local queriesChris Kipp2023-04-031-0/+6
| | | | | This just adds a small note in the CONTRIBUTING section about local queries and how they differ from those listed upstream.
* use indent.X syntax for captures and properties of set directivesGeorge Harker2023-03-241-8/+8
| | | | | | | | update CONTRIBUTING.md adjust indents for bass fix doc capture comment
* docs: add `@comment.documentation`Amaan Qureshi2023-03-051-6/+7
|
* docs: add `@string.documentation`Amaan Qureshi2023-03-051-9/+10
|
* docs: add `@keyword.coroutine`Amaan Qureshi2023-03-031-0/+1
|
* Update CONTRIBUTING.mdBulgantamir Gankhuyag2023-02-181-1/+1
| | | Fixed link of the supported languages.
* prettier formatting yml and mdKiyoon Kim2023-02-161-4/+3
|
* docs: fix comment alignmentObserverOfTime2023-01-211-23/+24
|
* docs: swap life-time aroundChris Kipp2023-01-151-1/+1
| | | Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
* docs: clarify @storageclass in CONTRIBUTING docsChris Kipp2023-01-151-1/+1
| | | | | | | | | | | This is just a tiny change that was in reference to https://github.com/nvim-treesitter/nvim-treesitter/pull/4153#discussion_r1070276800. The basis is that `@storageclass` should only be used unless it's actually affecting storage in memory. There are further conversations about this in the following places: - https://github.com/nvim-treesitter/nvim-treesitter/pull/3648#issuecomment-1279923861 - https://github.com/nvim-treesitter/nvim-treesitter/pull/3648#issuecomment-1291624844
* markdown: add strikethrough and blockquote capturesChristian Clason2023-01-141-1/+2
|
* docs: remove remaining references to ZulipStephan Seitz2023-01-111-7/+5
|
* highlights: create subscoping for ternary operatorStephan Seitz2022-12-021-0/+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.
* docs: fix contributing guidelinesObserverOfTime2022-11-261-13/+2
|
* docs: add `@nospell` to contributing.mdChristian Clason2022-11-191-1/+2
| | | supported as of Neovim v0.8.1
* rust: use @type.qualifier and @storageclassTrard2022-11-061-8/+9
|
* feat(diff): add diff parsergbprod2022-10-191-0/+3
| | | | This commit introduce diff parser.
* docs: document all the captures in CONTRIBUTING.mdObserverOfTime2022-10-171-116/+141
|
* Update CONTRIBUTING.mdCameron2022-09-101-0/+1
| | | Add `@variable.globle` to available variable captures.
* feat(spell): upstream spell queries from spellsitterLewis Russell2022-09-061-0/+4
|
* Updated CONTRIBUING.mdlfenzo2022-08-031-0/+2
|
* Add capture groups for remaining builtin highlight groupsGregory Anders2022-03-301-0/+8
| | | | | Some builtin highlight groups (see `:h group-name`) do not yet have associated capture groups, so add them.
* Zulip link was missing protocol portion?sogaiu2022-03-301-1/+1
|
* highlights: conceal `"` in JSONStephan Seitz2022-03-261-0/+7
| | | | Fixes #645
* docs: add `@zero_indent` to CONTRIBUTING.mdStephan Seitz2022-02-051-0/+1
|
* update TLA+ revision, add queries for PlusCal (#2344)Vasiliy Morkovkin2022-01-251-0/+1
|
* feat(indent): ecma - support try_catch and if_elseMunif Tanjim2022-01-211-0/+1
|
* feat(indent): support `@aligned_indent` for pythonMunif Tanjim2022-01-211-5/+6
|
* feat: rewrite indent moduleMunif Tanjim2022-01-211-4/+5
|
* docs(CONTRIBUTING.md): mention Neovim's tree-sitter Matrix channel (#2294)Stephan Seitz2022-01-191-4/+6
| | | | As suggested here: https://github.com/nvim-treesitter/nvim-treesitter/pull/2288#issuecomment-1015163267
* docs: refresh CONTRIBUTING.mdThomas Vigouroux2022-01-181-5/+7
| | | | | - Mention Zulip instead of Gitter - Use query filetype instead of scheme
* Update queriesSantos Gallegos2021-12-221-1/+1
| | | | | - Don't use the old form for predicates - Update some invalid queries