aboutsummaryrefslogtreecommitdiffstats
path: root/src/parse
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse')
-rw-r--r--src/parse/mod.rs8
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,