summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tokenizer/mod.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/tokenizer/mod.rs b/src/tokenizer/mod.rs
index 23385d7..274bf44 100644
--- a/src/tokenizer/mod.rs
+++ b/src/tokenizer/mod.rs
@@ -629,13 +629,8 @@ macro_rules! go (
return $me.emit_current_tag();
});
- ( $me:ident : eof ) => ({ $me.emit_eof(); return ProcessResult::Suspend; });
-
// If nothing else matched, it's a single command
( $me:ident : $($cmd:tt)+ ) => ( sh_trace!($me: $($cmd)+) );
-
- // or nothing.
- ( $me:ident : ) => (());
);
macro_rules! go_match ( ( $me:ident : $x:expr, $($pats:pat),+ => $($cmds:tt)* ) => (
@@ -1434,7 +1429,10 @@ impl<Sink: TokenSink> Tokenizer<Sink> {
| states::RawData(Rcdata)
| states::RawData(Rawtext)
| states::RawData(ScriptData)
- | states::Plaintext => go!(self: eof),
+ | states::Plaintext => {
+ self.emit_eof();
+ ProcessResult::Suspend
+ }
states::TagName
| states::RawData(ScriptDataEscaped(_))