EControl Syntax Editor SDK
Example

function TMyClass.MyFunction ... 

 

we have rule: 

0| . 

1| [any Identifier] 

2| function 

 

reference start of text range will point to ".", so 

format string 

"%s2 => %s1.%s-1

results 

"function => TMyClass.MyFunction"

Copyright (c) 2004-2011. All rights reserved.