aboutsummaryrefslogtreecommitdiff
path: root/src/machine.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2023-08-28 05:40:49 +0200
committerMartin Fischer <martin@push-f.com>2023-09-03 23:00:05 +0200
commitf2ff370d7b9920c89bcc50cf35b7cd5bc4d2c777 (patch)
tree910959c38d9d744ed82d4204b383d8ceb559c873 /src/machine.rs
parent7cd148aa33a0de7ae5629a51db9157f66db9ac67 (diff)
chore: move ControlToken enum definition to machine
Diffstat (limited to 'src/machine.rs')
-rw-r--r--src/machine.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/machine.rs b/src/machine.rs
index 007f22f..c5bf021 100644
--- a/src/machine.rs
+++ b/src/machine.rs
@@ -2,11 +2,15 @@ use crate::attr::AttrValueSyntax;
use crate::entities::try_read_character_reference;
use crate::offset::{Offset, Position};
use crate::utils::{
- ascii_digit_pat, control_pat, ctostr, noncharacter_pat, surrogate_pat, whitespace_pat,
- ControlToken, State,
+ ascii_digit_pat, control_pat, ctostr, noncharacter_pat, surrogate_pat, whitespace_pat, State,
};
use crate::{reader::Reader, Emitter, Error, Tokenizer};
+pub enum ControlToken {
+ Eof,
+ Continue,
+}
+
// Note: This is not implemented as a method on Tokenizer because there's fields on Tokenizer that
// should not be available in this method, such as Tokenizer.to_reconsume or the Reader instance
#[inline]