Mercurial > vim
comparison runtime/doc/syntax.txt @ 26708:f0d7cb510ce3
Update runtime files
Commit: https://github.com/vim/vim/commit/fa3b72348d88343390fbe212cfc230fec1602fc2
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Dec 24 13:18:38 2021 +0000
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 24 Dec 2021 14:30:04 +0100 |
parents | c725b8e17f1f |
children | 3e661b0cf500 |
comparison
equal
deleted
inserted
replaced
26707:d1af15dbf206 | 26708:f0d7cb510ce3 |
---|---|
4504 As can be seen here, the \z actually does double duty. In the start pattern, | 4504 As can be seen here, the \z actually does double duty. In the start pattern, |
4505 it marks the "\(\I\i*\)" sub-expression as external; in the end pattern, it | 4505 it marks the "\(\I\i*\)" sub-expression as external; in the end pattern, it |
4506 changes the \z1 back-reference into an external reference referring to the | 4506 changes the \z1 back-reference into an external reference referring to the |
4507 first external sub-expression in the start pattern. External references can | 4507 first external sub-expression in the start pattern. External references can |
4508 also be used in skip patterns: > | 4508 also be used in skip patterns: > |
4509 :syn region foo start="start \(\I\i*\)" skip="not end \z1" end="end \z1" | 4509 :syn region foo start="start \z(\I\i*\)" skip="not end \z1" end="end \z1" |
4510 | 4510 |
4511 Note that normal and external sub-expressions are completely orthogonal and | 4511 Note that normal and external sub-expressions are completely orthogonal and |
4512 indexed separately; for instance, if the pattern "\z(..\)\(..\)" is applied | 4512 indexed separately; for instance, if the pattern "\z(..\)\(..\)" is applied |
4513 to the string "aabb", then \1 will refer to "bb" and \z1 will refer to "aa". | 4513 to the string "aabb", then \1 will refer to "bb" and \z1 will refer to "aa". |
4514 Note also that external sub-expressions cannot be accessed as back-references | 4514 Note also that external sub-expressions cannot be accessed as back-references |