summaryrefslogtreecommitdiff
path: root/src/syntax/highlight.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-01-04 00:27:05 +0100
committerGitHub <noreply@github.com>2022-01-04 00:27:05 +0100
commit4c81a5d43eabd959dbb500a8076f99f21bd037bd (patch)
tree03349230f74786c7128876889c07a31a4932f108 /src/syntax/highlight.rs
parent52761a3baa901865b1fc42366017740cfa7eb566 (diff)
parentc994cfa7d814e3909682b19322867ed5c676c453 (diff)
Merge pull request #48 from typst/parser-incr
Incremental parsing
Diffstat (limited to 'src/syntax/highlight.rs')
-rw-r--r--src/syntax/highlight.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/syntax/highlight.rs b/src/syntax/highlight.rs
index 85fbef12..9f7365a8 100644
--- a/src/syntax/highlight.rs
+++ b/src/syntax/highlight.rs
@@ -154,10 +154,11 @@ impl Category {
NodeKind::Str(_) => Some(Category::String),
NodeKind::Error(_, _) => Some(Category::Invalid),
NodeKind::Unknown(_) => Some(Category::Invalid),
- NodeKind::Markup => None,
+ NodeKind::Markup(_) => None,
NodeKind::Space(_) => None,
NodeKind::Parbreak => None,
NodeKind::Text(_) => None,
+ NodeKind::TextInLine(_) => None,
NodeKind::List => None,
NodeKind::Enum => None,
NodeKind::Array => None,