33420Re: Regular expression bug?
- Aug 1, 2003On Fri, Aug 01, 2003 at 08:38:54PM +0200, Nikolai Weibull wrote:
> * Nikolai Weibull <lone-star@...> [Jul, 31 2003 01:00]:Trying with this:
> > OK, been trying to get this to work:
> > syn region rubyString matchgroup=rubyStringDelimit
> > \start=+\(class\s*\)\@<!<<-'\z(.*\)'.*\zs$+ end=+^\s*\z1$+ fold
> > But this does not work. In fact, it seems one cannot have a
> > word-character in front of \zs. Why is this so?
> > ex.:
> > syn match rubyString +<<-'EOL'\zs.*$+
> > does not match
> > INTERP._invoke("proc", "rb_out", "args", <<-'EOL')
> > this, however, does
> > syn match rubyString +<<-'\zs.*$+
> > am i missing something vital here?
> > nikolai
> don't want to be a bitch, but does anyone know anything about this?
> It's actually for a worthy cause. It would allow the Ruby construct
> method(arg1, <<-EOF, arg2, ...)
> to actually be highlighted correctly. Or if anyone could suggest a
> better way of telling the match to begin on the next line, be my guest.
\start=+\(class\s*\)\@<!<<-'\z(.*\)'.*\zs$+ end=+^\s*\z1$+ fold
\start=+\(class\s*\)\@<!<<-'\z([^']*\)'.*\zs$+ end=+^\s*\z1$+ fold
But I am not sure if you can use \z(\) and \zs in one expression at
LaTeX + Vim = http://vim-latex.sourceforge.net/
Vim-list(s) Users Map: (last change 27 May)
Are You There?
- << Previous post in topic Next post in topic >>