From: Dave M. <dm...@cs...> - 2003-05-14 02:18:15
|
Hi: The syntax hghlighting is 99% complete. I am still getting some problems creating a detector for types in eiffel. According to NICE, a type should be a capital letter followed by a sequence of capital letters, digits, and underscores. More formally: (A,...,Z) {(A,...,Z),(0,...,9), _)}* Using a simple TypeDetector which extends WordDetector is giving me problems. Basically, there are two methods I need to implement: isWordStart(char) : boolean -- beginning of word isWordPart(char) : boolean --part of word So I naively implement isWordStart to return true if it's a capital letter and isWordStart returns true if it's a capital letter, number or underscore. However, the result is as follows: ABC, C9_, gets highlighted aBC does not get highlighted but Abc results in the 'A' getting highlighted. Do I need to subclass WordRule? Please advise, DM |