Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Override color preview #377

Open
NotroDev opened this issue Oct 24, 2022 · 0 comments
Open

Override color preview #377

NotroDev opened this issue Oct 24, 2022 · 0 comments

Comments

@NotroDev
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant