From 4ae9d0981feec585b87ce93039f78f863a35df68 Mon Sep 17 00:00:00 2001 From: FlyingStitchman <stitchy@stitchy.moe> Date: Tue, 24 Dec 2024 15:32:25 +0000 Subject: [PATCH] fix(nix): nix lexor missing '=' operator 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. --- lexers/embedded/nix.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lexers/embedded/nix.xml b/lexers/embedded/nix.xml index 0ed040ca6..dd54d36fd 100644 --- a/lexers/embedded/nix.xml +++ b/lexers/embedded/nix.xml @@ -106,7 +106,7 @@ </bygroups> <push state="interpol"/> </rule> - <rule pattern="(&&|>=|<=|\+\+|->|!=|\|\||//|==|@|!|\+|\?|<|\.|>|\*)"> + <rule pattern="(&&|>=|<=|\+\+|->|!=|=|\|\||//|==|@|!|\+|\?|<|\.|>|\*)"> <token type="Operator"/> </rule> <rule pattern="[;:]">