Posted 21 years ago
by Steven Liu
Again I am trying to define a SectionState for following constrcut:
The "Section" keyword has no corresponding closing scope keyword, and this time I look ahead to the next SCETION keyword. The state definition is:
now, when I type:
The SectionState should include all 3 lines, but in fact it ends at first line. It can be fixed by selecting "Reparse document". Now if I delete the third line, SectionState includes first 2 lines, which is not correct either. Again seleting "reparse document" fixes the issue.
The above issue can be shown more clearly if outlining is enabled by a semantic parser.
Steven
SECTION Options
Option1=Val1
Option2=Val2
<State Key="SectionState">
<Scopes>
<Scope>
<ExplicitPatternGroup Type="StartScope" Token="SectionStartToken" Style="KeywordStyle" PatternValue="SECTION" LookAhead="{NonWordMacro}" />
<RegexPatternGroup Type="EndScope" Token="SectionEndToken" Style="DefaultStyle" PatternValue="\n" LookAhead="([ \t\n]*)(SECTION)" CaseSensitivity="Insensitive" IsContentDivider="True" />
</Scope>
</Scopes>
</State>
SECTION Options
Option1=Val1
The above issue can be shown more clearly if outlining is enabled by a semantic parser.
Steven