summaryrefslogtreecommitdiff
path: root/src/syntax/kind.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/syntax/kind.rs')
-rw-r--r--src/syntax/kind.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/syntax/kind.rs b/src/syntax/kind.rs
index 1282b592..b3948c66 100644
--- a/src/syntax/kind.rs
+++ b/src/syntax/kind.rs
@@ -150,8 +150,8 @@ pub enum NodeKind {
Strong,
/// Emphasized content: `_Emphasized_`.
Emph,
- /// A raw block with optional syntax highlighting: `` `...` ``.
- Raw(Arc<RawKind>),
+ /// Raw text with optional syntax highlighting: `` `...` ``.
+ Raw(Arc<RawFields>),
/// A hyperlink: `https://typst.org`.
Link(EcoString),
/// A label: `<label>`.
@@ -254,9 +254,9 @@ pub enum NodeKind {
Error(ErrorPos, EcoString),
}
-/// Fields of the node kind `Raw`.
+/// Fields of a [`Raw`](NodeKind::Raw) node.
#[derive(Debug, Clone, PartialEq, Hash)]
-pub struct RawKind {
+pub struct RawFields {
/// An optional identifier specifying the language to syntax-highlight in.
pub lang: Option<EcoString>,
/// The raw text, determined as the raw string between the backticks trimmed