summaryrefslogtreecommitdiff
path: root/src/syntax/highlight.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-04-08 15:08:26 +0200
committerLaurenz <laurmaedje@gmail.com>2022-04-08 15:45:14 +0200
commit712c00ecb72b67da2c0788e5d3eb4dcc6366b2a7 (patch)
treef5d7ef4341a4728c980d020cc173fa6bb70feaff /src/syntax/highlight.rs
parent977ac77e6a3298be2644a8231e93acbef9f7f396 (diff)
Em units
Diffstat (limited to 'src/syntax/highlight.rs')
-rw-r--r--src/syntax/highlight.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/syntax/highlight.rs b/src/syntax/highlight.rs
index bad434b9..b0486c7b 100644
--- a/src/syntax/highlight.rs
+++ b/src/syntax/highlight.rs
@@ -187,10 +187,7 @@ impl Category {
NodeKind::Bool(_) => Some(Category::Bool),
NodeKind::Int(_) => Some(Category::Number),
NodeKind::Float(_) => Some(Category::Number),
- NodeKind::Length(_, _) => Some(Category::Number),
- NodeKind::Angle(_, _) => Some(Category::Number),
- NodeKind::Percentage(_) => Some(Category::Number),
- NodeKind::Fraction(_) => Some(Category::Number),
+ NodeKind::Numeric(_, _) => Some(Category::Number),
NodeKind::Str(_) => Some(Category::String),
NodeKind::Error(_, _) => Some(Category::Invalid),
NodeKind::Unknown(_) => Some(Category::Invalid),