diff options
| author | Jonas Maier <jonas@x77.dev> | 2026-05-22 21:59:51 +0200 |
|---|---|---|
| committer | Jonas Maier <jonas@x77.dev> | 2026-05-22 21:59:51 +0200 |
| commit | 40e64a767a70ea5c04e4ab9fa6dd7ceac0ea882b (patch) | |
| tree | 73fd4642f1d7b89c8fc3e8df06642ff6bfd3eeb8 /src/parse/mod.rs | |
| parent | e4132ff564c59be72c6546752077a8f33bb4c00f (diff) | |
| download | pish-40e64a767a70ea5c04e4ab9fa6dd7ceac0ea882b.tar.gz | |
syntax highlighting bug fixes
Diffstat (limited to 'src/parse/mod.rs')
| -rw-r--r-- | src/parse/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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, |
