summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-01-31 15:34:40 +0100
committerBram Moolenaar <Bram@vim.org>2019-01-31 15:34:40 +0100
commit221cd9f4dd866503777b2fffa721c1403716ad63 (patch)
treee852c86a815d0f8667655a6a9c1ac920b2925620 /runtime
parent60f807b3f71a92881e2b3bf48bd016294957130e (diff)
downloadvim-git-221cd9f4dd866503777b2fffa721c1403716ad63.tar.gz
patch 8.1.0862: no verbose version of character classesv8.1.0862
Problem: No verbose version of character classes. Solution: Add [:ident:], [:keyword:] and [:fname:]. (Ozaki Kiichi, closes #1373)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/pattern.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/doc/pattern.txt b/runtime/doc/pattern.txt
index b0c7f2e6a..f17db9682 100644
--- a/runtime/doc/pattern.txt
+++ b/runtime/doc/pattern.txt
@@ -1118,6 +1118,9 @@ x A single character, with no special meaning, matches itself
*[:tab:]* [:tab:] the <Tab> character
*[:escape:]* [:escape:] the <Esc> character
*[:backspace:]* [:backspace:] the <BS> character
+*[:ident:]* [:ident:] identifier character (same as "\i")
+*[:keyword:]* [:keyword:] keyword character (same as "\k")
+*[:fname:]* [:fname:] file name character (same as "\f")
The brackets in character class expressions are additional to the
brackets delimiting a collection. For example, the following is a
plausible pattern for a UNIX filename: "[-./[:alnum:]_~]\+" That is,