How to define a case sensitive function string search?

Syntax highlighting, code folding, brace matching, code indenting, and function list

Re: How to define a case sensitive function string search?

Postby Mofi » Thu May 26, 2011 8:04 am

Without testing it by myself, try:

/TGBegin "Keyword"
/TGFindStr = "(?-i)^[ \t]*
\*{0,1}(\u+)\>(?<!\<TITLE1)(?<!\<GRID)(?<!\<MODEL)(?<!\<ROCKFLUID)(?<!\<INITIAL)(?<!\<NUMERICAL)(?<!\<RUN)(?<!\<STOP)"
/TGEnd


With that modification the search starts at beginning of a line where 0 or more spaces/tabs can be found before finding 0 or 1 asterisk before finding an upper case word which is not one of the words in the following list.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4055
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: How to define a case sensitive function string search?

Postby pepemosca » Thu May 26, 2011 8:13 am

Mofi, you are a MASTER!
Works like a charm!

Thanks!
pepemosca
Basic User
Basic User
 
Posts: 27
Joined: Sat Apr 24, 2010 8:31 am
Location: Argentina

Previous

Return to Syntax Highlighting