Implement native paragraph token naming and execution contexts
This commit is contained in:
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,
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user