From dabceaf05bfe7acc9ff7e2d02c0e1d0f4b6d4557 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 31 Jul 2018 15:58:07 +0100 Subject: [PATCH] Fix reference to perl regex syntax, Kakoune's is based on ECMAScript Fixes #2271 --- README.asciidoc | 4 ++-- contrib/TRAMPOLINE | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.asciidoc b/README.asciidoc index 95be94fa..5705a7b5 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -509,8 +509,8 @@ A multiselection can also be obtained with `S`, which splits the current selection according to the regex entered. To split a comma separated list, use `S` then ', *' -The regex syntax supported by Kakoune is the Perl one and is described -here <>. +The regex syntax supported by Kakoune is the based on the ECMAScript script +syntax and is described at <>. `s` and `S` share the search pattern with `/`, and hence entering an empty pattern uses the last one. diff --git a/contrib/TRAMPOLINE b/contrib/TRAMPOLINE index c24d79b9..d8bbe789 100644 --- a/contrib/TRAMPOLINE +++ b/contrib/TRAMPOLINE @@ -102,7 +102,7 @@ using the built-in `:doc` command. this behavior is only a preview, exiting prompt mode with the `` (escape) key will leave the current position .---, of the cursor unchanged. Note that you can also use a - | n | Perl regular expression as input. By default the search + | n | regular expression as input. By default the search `---' function will look for results forward, starting from the current location of the cursor, but you can search .---, .---, backwards using `` (alt + `/`).