How to retrieve the StartBracket and EndBracket of a Token

SyntaxEditor for Windows Forms Forum

Posted 16 years ago by BLANC Stéphane - Staubli Robotics Suite Product Manager, STAUBLI
Version: 4.0.0271
Avatar
Hello,

I have defined the following PatternGroupe the xml configuration file :

<ExplicitPatternGroup Key="EndIfPatternGroup" TokenID="456" TokenKey="EndIfReservedWordToken" Style="ReservedWordStyle" PatternValue="endIf" StartBracket="IfPatternGroup" CaseSensitivity="Sensitive" />

and I need to retrieve the value of the StartBracket property from a Token
in my code.

In fact, once I will have the StartBracket content,
I will be able to retrieve the TokenId and then,
be able to call the following method :

l_stream.GoToPreviousMatchingToken(l_stream.Token, START_TOKEN_ID);

Any idea ?

Thanks for your help

Regards

Stéphane

Comments (2)

Posted 16 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
If you cast your token to a DynamicToken, that class has a StartBracket property on it. I think that is what you are asking for.


Actipro Software Support

Posted 16 years ago by BLANC Stéphane - Staubli Robotics Suite Product Manager, STAUBLI
Avatar
Yes !
(via the LexicalPatternGroup property...)

Thanks

Stéphane
The latest build of this product (v24.1.0) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.