Posted 18 years ago
by Matthew Smith
-
Developer,
One Plus One Solutions Pty Limited
Version: 4.0.0244
Hi,
I have a question in regards to the Dynamic Syntax Language and outlining.
I'm designing a dynanic language definition for a basic language, which under certain circumstances requires a method or function to not have a end method/function call. I need to identify these and not set them as outlined when required.
Example codeI have used the provided Vb.Net Language Definition and DynamicOutlingingSyntaxLanguage class as the basis for my language's code.
This is the language definition for the methodAny assistance would be appreciated.
I have a question in regards to the Dynamic Syntax Language and outlining.
I'm designing a dynanic language definition for a basic language, which under certain circumstances requires a method or function to not have a end method/function call. I need to identify these and not set them as outlined when required.
Example code
'Outline this
Method TestA(x:Int, y:Int)
End Method
'Don't outline this
Method TestB(x:Int, y:Int) Abstract
This is the language definition for the method
<ExplicitPatternGroup TokenKey="MethodReservedWordToken" Style="ReservedWordStyle" LookBehind="^|[^\.]" LookAhead="{NonWordMacro}|\z" CaseSensitivity="AutoCorrect">
<ExplicitPattern Value="Method" />
</ExplicitPatternGroup>
<!-- Foldable End Reserved Words -->
<ExplicitPatternGroup TokenKey="EndMethodReservedWordToken" Style="ReservedWordStyle" LookBehind="^|[^\.]" LookAhead="{NonWordMacro}|\z" CaseSensitivity="AutoCorrect">
<ExplicitPattern Value="End Method" />
<ExplicitPattern Value="EndMethod" />
</ExplicitPatternGroup>
Regards, Matt