I'm trying to create a lexical pattern group that ends with a new line, unless there is a u before it.
But I'm getting an exception at runtime:
Additional information: An invalid character 'L' was found in a range specification.
The error occurred in the lexical pattern group for token 'T1' in the look-ahead pattern '[^u]{LineTerminatorMacro}'.
Can someone tell me what I'm missing?
Thanks!
((DynamicLexicalState)language.DefaultLexicalState).LexicalPatternGroups.Add(new
LexicalPatternGroup(LexicalPatternType.Regex, "T1", inputStyle,
inputPrefixPattern, @"[^u]{LineTerminatorMacro}"));
Additional information: An invalid character 'L' was found in a range specification.
The error occurred in the lexical pattern group for token 'T1' in the look-ahead pattern '[^u]{LineTerminatorMacro}'.
Can someone tell me what I'm missing?
Thanks!