mirror of
https://github.com/neovim/neovim.git
synced 2026-07-09 19:09:39 +00:00
[Backport release-0.9] feat(highlight): Allow hyphens (-) in highlight group names (#25661)
feat(highlight): allow hyphens (-) in highlight group names
Fixes: https://github.com/neovim/neovim/issues/23184
(cherry picked from commit f37916b93b)
Co-authored-by: Gregory Anders <greg@gpanders.com>
This commit is contained in:
committed by
GitHub
parent
01f1ac36a9
commit
87bfa82bdf
@@ -188,8 +188,8 @@ thing. These are then linked to a highlight group that specifies the color.
|
||||
A syntax group name doesn't specify any color or attributes itself.
|
||||
|
||||
The name for a highlight or syntax group must consist of ASCII letters,
|
||||
digits, underscores, periods and `@` characters. As a regexp it is
|
||||
`[a-zA-Z0-9_.@]*`. The maximum length of a group name is about 200 bytes.
|
||||
digits, underscores, periods, hyphens, and `@` characters. As a regexp it is
|
||||
`[a-zA-Z0-9_.@-]*`. The maximum length of a group name is about 200 bytes.
|
||||
*E1249*
|
||||
|
||||
To be able to allow each user to pick their favorite set of colors, there must
|
||||
|
||||
@@ -482,9 +482,9 @@ Highlight groups:
|
||||
using |n| or |N|
|
||||
|hl-CursorLine| is low-priority unless foreground color is set
|
||||
|hl-VertSplit| superseded by |hl-WinSeparator|
|
||||
Highlight groups names are allowed to contain the characters `.` and `@`.
|
||||
Highlight groups names are allowed to contain the characters `.`, `@`, and `-`.
|
||||
It is an error to define a highlight group with a name that doesn't match
|
||||
the regexp `[a-zA-Z0-9_.@]*` (see |group-name|).
|
||||
the regexp `[a-zA-Z0-9_.@-]*` (see |group-name|).
|
||||
|
||||
Macro/|recording| behavior
|
||||
Replay of a macro recorded during :lmap produces the same actions as when it
|
||||
|
||||
Reference in New Issue
Block a user