aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/pattern.txt
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2014-12-30 09:09:40 -0500
committerJustin M. Keyes <justinkz@gmail.com>2014-12-30 09:09:40 -0500
commitb5c7fbf4b09334fce266ba9a644e3dd6980993a8 (patch)
treeaa5023538237b1fdc8f2e505ded84939bd69106b /runtime/doc/pattern.txt
parenta31bcfb98afbe4d845911b4d90255c18769f197a (diff)
parent272f1064c74c745af4ac97ca1e46015fc7a6934d (diff)
downloadrneovim-b5c7fbf4b09334fce266ba9a644e3dd6980993a8.tar.gz
rneovim-b5c7fbf4b09334fce266ba9a644e3dd6980993a8.tar.bz2
rneovim-b5c7fbf4b09334fce266ba9a644e3dd6980993a8.zip
Merge pull request #1744 from fwalch/vim-1e8ebf8
vim-patch:1e8ebf8 (missing runtime update)
Diffstat (limited to 'runtime/doc/pattern.txt')
-rw-r--r--runtime/doc/pattern.txt19
1 files changed, 13 insertions, 6 deletions
diff --git a/runtime/doc/pattern.txt b/runtime/doc/pattern.txt
index 207a43d87f..f66ac170ae 100644
--- a/runtime/doc/pattern.txt
+++ b/runtime/doc/pattern.txt
@@ -1,4 +1,4 @@
-*pattern.txt* For Vim version 7.4. Last change: 2014 May 28
+*pattern.txt* For Vim version 7.4. Last change: 2014 Jul 30
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -706,11 +706,18 @@ overview.
But to limit the time needed, only the line where what follows matches
is searched, and one line before that (if there is one). This should
be sufficient to match most things and not be too slow.
- The part of the pattern after "\@<=" and "\@<!" are checked for a
- match first, thus things like "\1" don't work to reference \(\) inside
- the preceding atom. It does work the other way around:
- Example matches ~
- \1\@<=,\([a-z]\+\) ",abc" in "abc,abc"
+
+ In the old regexp engine the part of the pattern after "\@<=" and
+ "\@<!" are checked for a match first, thus things like "\1" don't work
+ to reference \(\) inside the preceding atom. It does work the other
+ way around:
+ Bad example matches ~
+ \%#=1\1\@<=,\([a-z]\+\) ",abc" in "abc,abc"
+
+ However, the new regexp engine works differently, it is better to not
+ rely on this behavior, do not use \@<= if it can be avoided:
+ Example matches ~
+ \([a-z]\+\)\zs,\1 ",abc" in "abc,abc"
\@123<=
Like "\@<=" but only look back 123 bytes. This avoids trying lots