Skip to content

Override color preview #377

@NotroDev

Description

@NotroDev

Hey.
I have this ruleset for color preview:

<RuleSet name="ColorsRuleSet">
	<Span foreground="#FF5555" ruleSet="TestRuleSet">
		<Begin>(&amp;[clkmno])+(?:[^;&quot;&amp;]|&quot;&quot;)*(?=[;&quot;&amp;])</Begin>
		<End></End>
	</Span>
	<Span foreground="#AA0000" ruleSet="TestRuleSet">
		<Begin>(&amp;[4lkmno])+(?:[^;&quot;&amp;]|&quot;&quot;)*(?=[;&quot;&amp;])</Begin>
		<End></End>
	</Span>
	
	<Import ruleSet="TestRuleSet" />
</RuleSet>

But this overrode my percent-expressions (e.g. %player%) so I moved it to the other ruleset and added it to the ColorsRuleSet, but it doesn't work:

<RuleSet name="TestRuleSet">
	<Rule color="BracedExpression">
		%[^%{}]*[{}][^%]*%[^%]*%[^%{}]*[{}][^%]*%|%[^%]*%
	</Rule>
</RuleSet>

It's like this:
obraz

But it should be like this:
obraz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions