On 4 March 2010 10:56, Rene <[email protected]> wrote:
> Thanks, I nearly done it:
> syn region    cppRawString
>  start=+R"\([a-zA-Z0-9\_\{\}\]\#\(\)\<\>\%\:\;\.\?\*\+\-\/\^\&\|\~\!\=\,\\\"\']\)*\[+
> end=+\]\1"+ contains=cSpecial,cFormat,@Spell
>
> Just the problem is, it seems like I couldn't use the grouped atom in the
> start pattern for use in the end pattern..
>
> Vim is saying: "Illegal back reference" because I use \1 in the end
> pattern..
> The start pattern is correct, I tested it, only the end pattern isn't
> working.
>
> How can I get the group-match of the start pattern and use it in the end
> pattern?
>
> Is this even possible right now? If it wasn't possible C++ raw strings would
> be impossible to implement :-(
>
>
> Kind Regards, René

:help :syn-ext-match

HTH

BTW, please do not top-post on this group.

-- 
Regards,
Lech Lorens

-- 
You received this message from the "vim_dev" 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

Raspunde prin e-mail lui