Embedded C code in Ruby strings
Nikolai Weibull
mailing-lists.vim-ruby-development at rawuncut.elitemail.org
Mon Nov 15 12:31:29 EST 2004
* Jonathan Paisley <jp-www at dcs.gla.ac.uk> [Nov 15, 2004 17:00]:
> > > I wanted to highlight in vim the embedded C code as C, so I added
> > > extra definitions for the ruby here doc which match against the
> > > tag 'EOC' (end-of-C).
> > This should probably not go into the core.
> I agree with that in general, but I think that since it's a useful
> capability, it'd be good to find some place to keep a record of a
> solution for other people who have similar goals.
Yeah, but EOC can be END-OF-COMMENT as well, so it's not unique. What
I'd suggest is to wrap it in a if exists("ruby_use_eoc") ... endif or
something similar; then it may go in core.
nikolai
--
::: name: Nikolai Weibull :: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA :: loc atm: Gothenburg, Sweden :::
::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
More information about the vim-ruby-devel
mailing list