diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-02-06 23:00:13 +0000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-02-06 23:00:13 +0000 |
| commit | ce2b85ddacfcf9489aff752a98ae2c7797c76882 (patch) | |
| tree | 55eda38b2164e1001501bb0a82a53a891cd5d9bd /doc | |
| parent | e929b1531fe79f651e15b329d98380c308c220f7 (diff) | |
Add -match-capture support for regions higlighter
Closes #837
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/manpages/highlighters.asciidoc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/manpages/highlighters.asciidoc b/doc/manpages/highlighters.asciidoc index 6286d2cd..bdb21749 100644 --- a/doc/manpages/highlighters.asciidoc +++ b/doc/manpages/highlighters.asciidoc @@ -160,6 +160,10 @@ That matches the rule governing most programming language parsing. Regions also supports a *-default <default_region>* switch to define the default region, when no other region matches the current buffer range. +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. + Most programming languages can then be properly highlighted using a regions highlighter as root: |
