comparison runtime/doc/pattern.txt @ 15709:2e2f07561f4b v8.1.0862

patch 8.1.0862: no verbose version of character classes commit https://github.com/vim/vim/commit/221cd9f4dd866503777b2fffa721c1403716ad63 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 31 15:34:40 2019 +0100 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 #1373)
author Bram Moolenaar <Bram@vim.org>
date Thu, 31 Jan 2019 15:45:06 +0100
parents 97b40b4c6911
children 314694a2e74a
comparison
equal deleted inserted replaced
15708:8a6b91646ba7 15709:2e2f07561f4b
1116 *[:xdigit:]* [:xdigit:] hexadecimal digits: 0-9, a-f, A-F 1116 *[:xdigit:]* [:xdigit:] hexadecimal digits: 0-9, a-f, A-F
1117 *[:return:]* [:return:] the <CR> character 1117 *[:return:]* [:return:] the <CR> character
1118 *[:tab:]* [:tab:] the <Tab> character 1118 *[:tab:]* [:tab:] the <Tab> character
1119 *[:escape:]* [:escape:] the <Esc> character 1119 *[:escape:]* [:escape:] the <Esc> character
1120 *[:backspace:]* [:backspace:] the <BS> character 1120 *[:backspace:]* [:backspace:] the <BS> character
1121 *[:ident:]* [:ident:] identifier character (same as "\i")
1122 *[:keyword:]* [:keyword:] keyword character (same as "\k")
1123 *[:fname:]* [:fname:] file name character (same as "\f")
1121 The brackets in character class expressions are additional to the 1124 The brackets in character class expressions are additional to the
1122 brackets delimiting a collection. For example, the following is a 1125 brackets delimiting a collection. For example, the following is a
1123 plausible pattern for a UNIX filename: "[-./[:alnum:]_~]\+" That is, 1126 plausible pattern for a UNIX filename: "[-./[:alnum:]_~]\+" That is,
1124 a list of at least one character, each of which is either '-', '.', 1127 a list of at least one character, each of which is either '-', '.',
1125 '/', alphabetic, numeric, '_' or '~'. 1128 '/', alphabetic, numeric, '_' or '~'.