From: Jim Menard Date: 2002-09-07T15:01:28+09:00 Subject: Re: SciTE/VIM Syntax highlighting "Jim Bartlett" writes: > I am learning Ruby via "Programming Ruby: A Pragmatic Programmer's Guide". > In one example, a regex is made with an apostrophe as part of the pattern. > > aPhrase.scan /\w[-\w']+/ > > The syntax highlighting in SciTE and Vim then interprets all code following > the apostrophe to be part of a single quoted string (making it pink). Is > there a way to make it "ignore" the single quote (besides switching to plain > vi)?? I tried escaping it (\') but that didn't work. Thanks. Similar things happen in Emacs, too. Sometimes I have to include a comment on that line or the next line just to un-confuse the fontifier. aPhrase.scan /\w[-\w']+/ # ' <= un-confuse Emacs fontify code Jim -- Jim Menard, jimm@io.com, http://www.io.com/~jimm/ "I cannot articulate enough to express my dislike to people who think that understanding spoils your experience... How would they know?" -- Marvin Minsky