summaryrefslogtreecommitdiff
path: root/built_res/src/structs/sentence.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-02-09 10:31:14 +0800
committer魏曹先生 <1992414357@qq.com>2026-02-09 10:31:14 +0800
commit12d08d599a41b15e0a20113d1a521c8c3a232e79 (patch)
tree2052020ecaa9a07043e1a76410ad5649226d728d /built_res/src/structs/sentence.rs
Initialize MarkDialog project with parser and workspace structure
Diffstat (limited to 'built_res/src/structs/sentence.rs')
-rw-r--r--built_res/src/structs/sentence.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/built_res/src/structs/sentence.rs b/built_res/src/structs/sentence.rs
new file mode 100644
index 0000000..270d5f7
--- /dev/null
+++ b/built_res/src/structs/sentence.rs
@@ -0,0 +1,12 @@
+pub struct Sentence<'a> {
+ pub content_tokens: &'a [&'static Token],
+ pub next_sentence: Option<crate::res_sentences::SentenceId>,
+}
+
+pub enum Token {
+ Text(&'static str),
+ BoldText(&'static str),
+ ItalicText(&'static str),
+ BoldItalicText(&'static str),
+ Command(&'static str),
+}