Posted 17 years ago
by Tim Winquist
-
CTO,
Analysis, Integration & Design, Inc.

When I load a document with SyntaxEditor, the PerformSemanticParse(MergableLexicalParserManager manager){...} method is invoked in my DynamicOutliningSyntaxLanguage derived class. Next, when I press the space bar with the caret within existing whitespace the PerformSemanticParse(MergableLexicalParserManager manager){...} method is again invoked. I totally expect this since adding a whitespace in the document changes the document, which should require a reparse.
However, on all subsequent depressions of the space bar within any other whitespace anywhere in the document, the PerformSemanticParse(MergableLexicalParserManager manager){...} method is not invoked. Ever. It is only invoked upon the first depression of the space bar. Is this behavior expected? Is the behavior correct? I wouldn't think so since adding whitespace in the document changes the location of all tokens following that space. Has this behavior been fixed in recent revisions? I am currently using version 4.0.0251.
Any help would be greatly appreciated.
Thanks.
However, on all subsequent depressions of the space bar within any other whitespace anywhere in the document, the PerformSemanticParse(MergableLexicalParserManager manager){...} method is not invoked. Ever. It is only invoked upon the first depression of the space bar. Is this behavior expected? Is the behavior correct? I wouldn't think so since adding whitespace in the document changes the location of all tokens following that space. Has this behavior been fixed in recent revisions? I am currently using version 4.0.0251.
Any help would be greatly appreciated.
Thanks.