summaryrefslogtreecommitdiff
path: root/src/syntax/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/syntax/mod.rs')
-rw-r--r--src/syntax/mod.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/syntax/mod.rs b/src/syntax/mod.rs
index cb801627..b0cbcafa 100644
--- a/src/syntax/mod.rs
+++ b/src/syntax/mod.rs
@@ -85,6 +85,26 @@ pub enum Node {
Func(FuncCall),
}
+/// A thing to be syntax highlighted.
+#[derive(Debug, Copy, Clone, Eq, PartialEq)]
+pub enum ColorToken {
+ Comment,
+ Bracket,
+ FuncName,
+ Colon,
+ KeyArg,
+ Equals,
+ Comma,
+ ExprNumber,
+ ExprSize,
+ ExprStr,
+ ExprIdent,
+ ExprBool,
+ Bold,
+ Italic,
+ Monospace,
+}
+
/// An invocation of a function.
#[derive(Debug)]
pub struct FuncCall(pub Box<dyn LayoutFunc>);