Posted 20 years ago
by mbren
There seems to be a bug regarding having OR regular expressions in the LookBehind attribute of a pattern.
Whilewill work,
will produce the following error and stacktrace.
It is worth noting that
produces no such error and behaves correctly.
While
LookBehind="cat|dog"
LookBehind="cat|dog|tiger"
Stack empty.
at System.Collections.Stack.Pop()
at _28._1()
at _28._1(Int32 , _30 , Int32 )
at _28._1(_30 )
at _28._1(_30 , Boolean )
at ActiproSoftware.SyntaxEditor.LexicalPatternGroup._1()
at ActiproSoftware.SyntaxEditor.LexicalState._1()
at ActiproSoftware.SyntaxEditor.LexicalState._1(StringBuilder , Int32& , Int32 , LexicalPattern& )
at _19._1(SyntaxLanguage , StringBuilder , Int32& , Int32 , _18 , Token , Int32 )
at ActiproSoftware.SyntaxEditor.Document.Reparse()
at ActiproSoftware.SyntaxEditor.Document.set_Language(SyntaxLanguage value)
at ActiproSoftware.SyntaxEditor.Document.LoadLanguageFromXml(String filename, Int32 encryptionKey)
LookAhead="cat|dog|tiger"