Posted 20 years ago
by Avalon
- TX

I had this thing working in 2.5 but now for the life of me I cannot get it to create any custom states
I have tried both of the following however neither appear to be working. Am I doing something wrong that changed from version 2.5 to 3.0 because i got this working easily in 2.5 and now can't get extra states to be recongized even ever copying and pasting the multiline comment. Any help would be greatly appreciated as NOTHING what so ever seems to be recgonized except for the default values although I know that I am sending changes to it because if i change an existing style it shows up immediately. J
<State Key="TestCommentState" TokenKey="TestCommentDefaultToken" Style="CommentDefaultStyle">
<Scopes>
<Scope BracketHighlight="True">
<ExplicitPatternGroup Type="StartScope" TokenKey="TestCommentStartToken" Style="CommentDelimiterStyle" PatternValue="{" />
<ExplicitPatternGroup Type="EndScope" TokenKey="TestCommentEndToken" Style="CommentDelimiterStyle" PatternValue="}" />
</Scope>
</Scopes>
<PatternGroups>
<RegexPatternGroup TokenKey="TestCommentDefaultToken" PatternValue="[^}]+" />
</PatternGroups>
</State>
I have tried both of the following however neither appear to be working. Am I doing something wrong that changed from version 2.5 to 3.0 because i got this working easily in 2.5 and now can't get extra states to be recongized even ever copying and pasting the multiline comment. Any help would be greatly appreciated as NOTHING what so ever seems to be recgonized except for the default values although I know that I am sending changes to it because if i change an existing style it shows up immediately. J
<State Key="TestCommentState" TokenKey="TestCommentDefaultToken" Style="CommentDefaultStyle">
<Scopes>
<Scope BracketHighlight="True">
<ExplicitPatternGroup Type="StartScope" TokenKey="TestCommentStartToken" Style="CommentDelimiterStyle" PatternValue="{" />
<ExplicitPatternGroup Type="EndScope" TokenKey="TestCommentEndToken" Style="CommentDelimiterStyle" PatternValue="}" />
</Scope>
</Scopes>
<PatternGroups>
<RegexPatternGroup TokenKey="TestCommentDefaultToken" PatternValue="[^}]+" />
</PatternGroups>
</State>