aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/syntax.txt
diff options
context:
space:
mode:
authorJosh Rahm <rahm@google.com>2022-09-12 10:52:49 -0600
committerJosh Rahm <rahm@google.com>2022-09-12 10:52:49 -0600
commit4889fe01b9853cf98363ac226f95b524801ff3cc (patch)
tree279d43b86561bf1314fdf1cf5c0c9af6aac76b25 /runtime/doc/syntax.txt
parent8fc6e69877f6c15942b4e8fc6ca471e4221d9bae (diff)
parentfd70e2bff2440181f63fe124738cf2a025d1e6a5 (diff)
downloadrneovim-4889fe01b9853cf98363ac226f95b524801ff3cc.tar.gz
rneovim-4889fe01b9853cf98363ac226f95b524801ff3cc.tar.bz2
rneovim-4889fe01b9853cf98363ac226f95b524801ff3cc.zip
Merge remote-tracking branch 'upstream/master' into usermarks
Diffstat (limited to 'runtime/doc/syntax.txt')
-rw-r--r--runtime/doc/syntax.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt
index b74611633f..6fcf292513 100644
--- a/runtime/doc/syntax.txt
+++ b/runtime/doc/syntax.txt
@@ -181,16 +181,16 @@ Vim will only load the first syntax file found, assuming that it sets
b:current_syntax.
-NAMING CONVENTIONS *group-name* *{group-name}* *E669* *W18*
+NAMING CONVENTIONS *group-name* *{group-name}* *E669* *E5248*
A syntax group name is to be used for syntax items that match the same kind of
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
-and the underscore. As a regexp: "[a-zA-Z0-9_]*". However, Vim does not give
-an error when using other characters. The maximum length of a group name is
-about 200 bytes. *E1249*
+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.
+*E1249*
To be able to allow each user to pick their favorite set of colors, there must
be preferred names for highlight groups that are common for many languages.