Posted 17 years ago
by Alexey Chuikov
-
Project Tech Leader. Custom Development,
Quest Software
Version: 4.0.0253
Hi
I use XML for dynamic language definition. Defining bracket tokens in following wayI get start and end brackets highlighted, so it seems editor knows about bracket matching. But MatchingTokenID property of bracket tokens remains zero. So, I cannot get information on brackets relations without re-parsing text. Am I missing something? Is there a simple way to match brackets?
Thanks in advance,
Alexey
I use XML for dynamic language definition. Defining bracket tokens in following way
<ExplicitPatternGroup TokenID="1" Key="OpenParenthesisPatternGroup" TokenKey="OpenParenthesisToken" PatternValue="(" EndBracket="CloseParenthesisPatternGroup"/>
<ExplicitPatternGroup TokenID="2" Key="CloseParenthesisPatternGroup" TokenKey="CloseParenthesisToken" PatternValue=")" StartBracket="OpenParenthesisPatternGroup"/>
Thanks in advance,
Alexey