On Mar 27, 3:44 am, "Benjamin R. Haskell" <[email protected]> wrote: > On Sat, 26 Mar 2011, Roald wrote: > > 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.
Cool! Exactly what I needed, thanks. -- 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
