Regex lookbehinds in edit mode definition don't work
Submitted by Thursday, 20 September, 2007 - 08:29
on
I'm trying to improve the highlighting on methods and properties in my Powershell mode. It seems to me that lookbehinds are the best way to get this done. The following example shows what I believe to be a valid statement:
<SEQ_REGEXP TYPE="KEYWORD3">(?<=\$[a-z]{1,100}\.)\w+(?=\()</SEQ_REGEXP>
This matches "$foo.bar()" when I do a search but doesn't highlight it (I'm trying to highlight "bar"). Is this something to do with the tokens being passed aroung the highligher simply not having characters for the lookbehind to match?
I don't see any other modes using this technique so I'm wondering if anyone has tried it.