mirror of
https://github.com/alecthomas/chroma.git
synced 2025-03-21 21:17:50 +02:00
fix(nix): nix lexor missing '=' operator (#1031)
The nix lexor was missing the '=' operator in the operators rule. This meant that in some cases (like the first '=' in a code block), it would return an err instead of the proper highlighting. Before:  After: 
This commit is contained in:
parent
67f0e3b31d
commit
f3ff20b1f5
@ -106,7 +106,7 @@
|
|||||||
</bygroups>
|
</bygroups>
|
||||||
<push state="interpol"/>
|
<push state="interpol"/>
|
||||||
</rule>
|
</rule>
|
||||||
<rule pattern="(&&|>=|<=|\+\+|->|!=|\|\||//|==|@|!|\+|\?|<|\.|>|\*)">
|
<rule pattern="(&&|>=|<=|\+\+|->|!=|=|\|\||//|==|@|!|\+|\?|<|\.|>|\*)">
|
||||||
<token type="Operator"/>
|
<token type="Operator"/>
|
||||||
</rule>
|
</rule>
|
||||||
<rule pattern="[;:]">
|
<rule pattern="[;:]">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user