![Avatar](https://secure.gravatar.com/avatar/377c902022830b2ef9fdea964712232f.jpg?s=64&d=identicon&r=g)
Hello,
I don't know how to make sense of this, how do you figure out if the present location of cursor is inside the round brackets and when it is outside round brackets. I use dynamiclanguage definition and definied my brackets explicitly just liek your C# language does:
<ExplicitPatternGroup Key="OpenParenthesisPatternGroup" TokenKey="OpenParenthesisToken" PatternValue="(" LookAhead="$|[^\*\.]" EndBracket="CloseParenthesisPatternGroup" />
<ExplicitPatternGroup Key="CloseParenthesisPatternGroup" TokenKey="CloseParenthesisToken" PatternValue=")" StartBracket="OpenParenthesisPatternGroup" />
I have the following options set to true:
syntaxEditor.BracketHighlightingInclusive = true;
syntaxEditor.BracketHighlightingVisible = true;
And i see that the dynamic paraser highlights the parenthesis for me, but how do i determine at all times anywhere in my code if i am inside or not of a perenthesis structure?
Regards
I don't know how to make sense of this, how do you figure out if the present location of cursor is inside the round brackets and when it is outside round brackets. I use dynamiclanguage definition and definied my brackets explicitly just liek your C# language does:
<ExplicitPatternGroup Key="OpenParenthesisPatternGroup" TokenKey="OpenParenthesisToken" PatternValue="(" LookAhead="$|[^\*\.]" EndBracket="CloseParenthesisPatternGroup" />
<ExplicitPatternGroup Key="CloseParenthesisPatternGroup" TokenKey="CloseParenthesisToken" PatternValue=")" StartBracket="OpenParenthesisPatternGroup" />
I have the following options set to true:
syntaxEditor.BracketHighlightingInclusive = true;
syntaxEditor.BracketHighlightingVisible = true;
And i see that the dynamic paraser highlights the parenthesis for me, but how do i determine at all times anywhere in my code if i am inside or not of a perenthesis structure?
Regards