From 1123a979d06d66f0bf4ab8684829a64832986a25 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Fri, 24 Jul 2020 19:53:07 -0400 Subject: vim-patch:8.1.0862: no verbose version of character classes Problem: No verbose version of character classes. Solution: Add [:ident:], [:keyword:] and [:fname:]. (Ozaki Kiichi, closes vim/vim#1373) https://github.com/vim/vim/commit/221cd9f4dd866503777b2fffa721c1403716ad63 --- runtime/doc/pattern.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'runtime/doc/pattern.txt') diff --git a/runtime/doc/pattern.txt b/runtime/doc/pattern.txt index adfab07758..7129c6cd58 100644 --- a/runtime/doc/pattern.txt +++ b/runtime/doc/pattern.txt @@ -1111,6 +1111,9 @@ x A single character, with no special meaning, matches itself *[:tab:]* [:tab:] the character *[:escape:]* [:escape:] the character *[:backspace:]* [:backspace:] the 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, -- cgit