> From: Raul Miller > > On Thu, Feb 18, 2010 at 4:57 PM, Sherlock, Ric wrote: > > In short Method A highlights the whole word (including the "dot" and > > "_myvar" suffix), whereas Method B highlights only the "word" part > > of the control words (not the trailing "." or the "_myvar" suffix). > > For a better description and examples see the following wiki page: > > http://www.jsoftware.com/jwiki/Guides/Syntax%20Coloring/GeSHi%20Options > What would Method B do with lines such as > while=: [: +/ i. > > which contain user defined words with the same spelling as the control > words (except without the dot)?
It uses a Regex lookahead assertion to only match the words if they are followed by a fullstop. > That said, I am leaning towards A because B with something like > for_j. > would suggest a variable named _j (which is wrong) rather than > a variable named j Thanks. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
