I am trying out your product and I encountered a bug in the dynamic lexer v2012.2.570.
Either the lexing is not being done properly or the syntax highlighting is not being updated for multi-line patterns.
Here is how to reproduce the bug:
1. Open the following language with the language editor:
<?xml version="1.0" encoding="utf-8"?>
<LanguageProject LanguageKey="MyLanguage" LanguageDescription="My Language" OutputLanguageDefinition="False" OutputLanguageKey="CSharp" OutputNamespaceName="MyCompanyName.Text.Languages.MyLanguage" xmlns="http://schemas.actiprosoftware.com/langproj/1.0">
<!-- Classification types -->
<LanguageProject.ClassificationTypes>
<ClassificationType Key="Black" DefaultStyle="#FF000000" />
<ClassificationType Key="Red" DefaultStyle="#FFFF0000" />
</LanguageProject.ClassificationTypes>
<!-- Lexer -->
<LanguageProject.Lexer>
<DynamicLexer>
<!-- Default state -->
<State Key="Default" DefaultClassificationTypeKey="Black">
<RegexPatternGroup ClassificationTypeKey="Red" Pattern="x[^x]*x" />
</State>
</DynamicLexer>
</LanguageProject.Lexer>
</LanguageProject>
2. Click on "Build", then click on "Live Test".
3. In the Live Test document, paste the following (with the new lines):
a
x
b
x
c
4. You should see that both x's and the b are all red.
5. Place the caret to the left of the last x and hit the "DEL" key to delete the last x. Notice that the c is not red, but it should be. Similar problems happen when deleting the first x.
Please let me know if I'm doing something wrong or if this is indeed a bug.
Thanks!