summaryrefslogtreecommitdiff
path: root/src/syntax/token.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/syntax/token.rs')
-rw-r--r--src/syntax/token.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/syntax/token.rs b/src/syntax/token.rs
index c4b9ec8f..5e69a350 100644
--- a/src/syntax/token.rs
+++ b/src/syntax/token.rs
@@ -170,9 +170,9 @@ pub struct TokenRaw<'s> {
pub struct TokenMath<'s> {
/// The formula between the dollars.
pub formula: &'s str,
- /// Whether the formula was surrounded by one dollar (true) or two dollars
- /// (false).
- pub inline: bool,
+ /// Whether the formula is display-level, that is, it is surrounded by
+ /// `$[..]`.
+ pub display: bool,
/// Whether the closing dollars were present.
pub terminated: bool,
}
@@ -243,8 +243,8 @@ impl<'s> Token<'s> {
Self::Bool(_) => "boolean",
Self::Int(_) => "integer",
Self::Float(_) => "float",
- Self::Length(..) => "length",
- Self::Angle(..) => "angle",
+ Self::Length(_, _) => "length",
+ Self::Angle(_, _) => "angle",
Self::Percent(_) => "percentage",
Self::Color(_) => "color",
Self::Str(_) => "string",