> Hi all,
>
> I'm trying write a syntax file for (a subset of) YAML, mainly to
> provide nice folding. It would not be so hard (I think) if I could use
> back references in the skip and end patterns (referring back to the
> start pattern), but that appears not to be allowed. Does anybody know
> a way to do this?
It sounds like you're looking for what's described at:
:help /\z(
Basically, insert a 'z' between the \( that normally opens a capture
group, and between the corresponding back reference: \z1 instead of \1,
\z2 instead of \2, etc.
There's an example of its use in :syntax region below the help.
--
Best,
Ben
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment