
Hi,
I have a question in regards to the Dynamic Syntax Language and outlining.
I'm designing a dynamic language definition for a basic language, which requires the REPEAT/UNTIL method to be folded.
It's general format is:
REPEAT
statement
UNTIL expression
The problem I have is folding the expresion associated with the UNTIL command.
This is the code in the xml file:Example code in the Editor:
I have looked at the other Actipro examples but could not seen a similar example where the rest of the line after the final end keyword is folded.
Any suggestion would be appreciated?
Regards,
Chris.
I have a question in regards to the Dynamic Syntax Language and outlining.
I'm designing a dynamic language definition for a basic language, which requires the REPEAT/UNTIL method to be folded.
It's general format is:
REPEAT
statement
UNTIL expression
The problem I have is folding the expresion associated with the UNTIL command.
This is the code in the xml file:
<ExplicitPatternGroup TokenKey="RepeatRegionStartToken" Style="KeywordStyle" LookAhead="{NonWordMacro}|\z" CaseSensitivity="AutoCorrect">
<ExplicitPattern Value="REPEAT" />
</ExplicitPatternGroup>
<ExplicitPatternGroup TokenKey="EndRepeatRegionStartToken" Style="KeywordStyle" LookAhead="{NonWordMacro}|\z" CaseSensitivity="AutoCorrect">
<ExplicitPattern Value="UNTIL" />
</ExplicitPatternGroup>
0 'Outlining Open
1 REPEAT
2 a := a + 1
3 UNTIL a < 10
4
5 'Outlining Closed
6 REPEAT (...) a < 10
Any suggestion would be appreciated?
Regards,
Chris.