Implement native paragraph token naming and execution contexts

This commit is contained in:
gloamxun committed 2026-11-21 01:49:10 +08:00
1 parent 862801ee5f
commit 13ab32247d
12 files changed
+118 -24

No files matched your search

@@ -499,7 +499,10 @@ impl Mouth {
CatCode::EndLine => {
self.cursor = self.line.len();
let kind = match self.state {
LineState::New => TokenKind::Command(CommandName::Control("par".into())),
LineState::New => {
reads.insert(Dependency::ParagraphToken);
state.paragraph_token()
}
LineState::Middle => TokenKind::Character(' ', CatCode::Space),
LineState::Skip => continue,
};