From 40e64a767a70ea5c04e4ab9fa6dd7ceac0ea882b Mon Sep 17 00:00:00 2001 From: Jonas Maier Date: Fri, 22 May 2026 21:59:51 +0200 Subject: syntax highlighting bug fixes --- src/parse/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/parse') diff --git a/src/parse/mod.rs b/src/parse/mod.rs index 1c1b184..10ec666 100644 --- a/src/parse/mod.rs +++ b/src/parse/mod.rs @@ -1296,11 +1296,11 @@ pub enum ParseMode { Completion, } -#[derive(Copy, Clone)] +#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord)] pub enum HighlightKind { - Keyword(Keyword), - String, None, + String, + Keyword(Keyword), } pub struct Highlight { @@ -1504,7 +1504,7 @@ impl<'a> Cursor<'a> { } } -#[derive(Copy, Clone, Debug, PartialEq)] +#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord)] pub enum Keyword { If, While, -- cgit v1.2.3