From 5a5fc50c123665e92a72e82e63dd17595c283a72 Mon Sep 17 00:00:00 2001 From: Sidharth Kshatriya Date: Mon, 23 May 2022 16:51:05 +0530 Subject: [PATCH] highlighter doc: some clarificatory edits --- doc/pages/highlighters.asciidoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/pages/highlighters.asciidoc b/doc/pages/highlighters.asciidoc index 098089dd..9368b270 100644 --- a/doc/pages/highlighters.asciidoc +++ b/doc/pages/highlighters.asciidoc @@ -218,15 +218,15 @@ add-highlighter // region \ *recurse*:: regex that defines the text that matches recursively an end token into the region, every match of *recurse* will consume a following - match of *end*, preventing it from closing the region. + match of *closing* regex, preventing it from closing the region. *type* and *params*:: A highlighter type, and associated params, as they would be passed to `add-highlighter` if they were not applied as a region. -If the *-match-capture* switch is passed, then region closing and recurse -matches are considered valid for a given region opening match only if they -matched the same content for the capture 1. +If the *-match-capture* switch is passed, then region *closing* and *recurse* +regex matches are considered valid for a given region opening match only if they +matched the same content for the capture 1 in the *opening* regex. The *recurse* option is useful for regions that can be nested, for example the following construct: