Rename default query to 'rainbow-delimiters'

This commit is contained in:
HiPhish 2023-07-02 17:56:33 +02:00
parent a44a351421
commit ed103c52b4
48 changed files with 14 additions and 14 deletions

View file

@ -19,7 +19,7 @@ body:
attributes:
label: 'Query'
description: 'Leave empty if the issue is not tied to a specific query.'
placeholder: 'rainbow-parens'
placeholder: 'rainbow-delimiters'
- type: 'input'
attributes:
label: 'Strategy'

View file

@ -14,7 +14,7 @@ at lease one query which matches the most common delimiters, usually `(`, `)`,
manual first to understand how to write queries. Your query should meet the
following criteria:
- Named `rainbow-parens`
- Named `rainbow-delimiters`
- Few if any `@intermediate` capture groups; we do not want the default query
to be too vibrant
- Write one or more files in the language under `test/highlight/<lang>` (where

View file

@ -104,14 +104,14 @@ changes to Neovim necessitates them.
so that only the first node of a capture group can be highlighted. Please
see `neovim/neovim#17099`_ for details. Affected queries:
- HTML `rainbow-parens`
- JSX (Javascript + React.js) `rainbow-parens-react` (affects React tags
- HTML `rainbow-delimiters`
- JSX (Javascript + React.js) `rainbow-delimiters-react` (affects React tags
only)
- Python (`rainbow-parens`) (affects only the `for ... in` inside
- Python (`rainbow-delimiters`) (affects only the `for ... in` inside
comprehensions)
- TSX (Typescript + React.js) `rainbow-parens-react` (affects React tags
- TSX (Typescript + React.js) `rainbow-delimiters-react` (affects React tags
only)
- Vue.js `rainbow-parens`
- Vue.js `rainbow-delimiters`
Most of these are related to HTML-like tags, so you can use an alternative
query instead. See the manual_ (`:h ts-rainbow-query`) for a list of extra

View file

@ -250,7 +250,7 @@ If you wish to define your own custom query or add support for a new language,
consult |rb-delimiters-custom-query| for details.
For every language the query `rainbow-delimiters` is defined, which matches a
reasonable set of parentheses and similar delimiters for each language.. In
reasonable set of parentheses and similar delimiters for each language. In
addition there are the following extra queries for certain languages:
- `html`

View file

@ -18,7 +18,7 @@
local M = {
---Query names by file type
query = {
[''] = 'rainbow-parens',
[''] = 'rainbow-delimiters',
html = 'rainbow-tags',
latex = 'rainbow-blocks',
tsx = 'rainbow-tags',

View file

@ -1,2 +1,2 @@
The query `rainbow-tags` is a symlink to `rainbow-parens`. It only exists so
the Typescript React query can inherit it.
The query `rainbow-tags` is a symlink to `rainbow-delimiters`. It only exists
so the Typescript React query can inherit it.

View file

@ -1,2 +1,2 @@
The query `rainbow-tags` is a symlink to `rainbow-parens`. It only exists so
the Typescript React query can inherit it.
The query `rainbow-tags` is a symlink to `rainbow-delimiters`. It only exists
so the Typescript React query can inherit it.

View file

@ -1,5 +1,5 @@
{
description = "Test flake for ts-rainbow-parens2";
description = "Test flake for rainbow-delimiters.nvim";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";