Re: Syntax Question
- On Sat, 01 Feb 2003 at 15:08:06 -0500, Geoffrey Mann wrote:
> Piet,Rich text? I only see plain text here...
> Thanks for your response. Unfortunately, all 4 of the below lines give me the same response for the below text.
> 1) syn region sasProcGplot start=/proc/ skipwhite end=/gplot/
> 2) syn region sasProcGplot start=/proc/ skip=/\_s\+/ end=/gplot/
> 3) syn region sasProcGplot start=/proc/ skip=/\_s/ end=/gplot/
> 4) syn region sasProcGplot start=/proc/ end=/test/ oneline
> /*---plots using time-of-flight on the x-axis---*/
> symbol i=join r=20;
> proc gplot data=rp1prep;
> Sorry for the rich text but I needed the highlight to show that it is
> going to the first "proc" string it sees and goes to the gplot.
> Do I want to use a cluster? I have exhaustively read the doc (which IHmm, the :syn region statements above should work. Did you do a :syn
> am knowledgeable in regexp so it is hurting me), and have been playing
> with a lot of different combinations. Any more suggestions would be
> greatly appreciated.
clear, or restart Vim, before trying out each of the above :syn region
statements? Not doing so could cause previously-defined regions to
match the text, before the ones you just entered even have a chance.
As an aside, it's probably better and more efficient to use a single
match, instead of the regions above, as in:
:syn match sasProcGplot /proc\_s\+gplot/
Today's subliminal thought is: