aboutsummaryrefslogtreecommitdiff
path: root/src/tokenizer/machine.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2023-09-09 21:42:17 +0200
committerMartin Fischer <martin@push-f.com>2023-09-28 10:36:08 +0200
commit2c73901944e2d22747a2a4ebcc11881b3f8c2ad3 (patch)
tree310726d807df6f6ae6911033dd31e5bd139a0559 /src/tokenizer/machine.rs
parent2a0c35906d96203a3dc2b41cf8a1be74e025b285 (diff)
refactor: move utils module under tokenizer::machine
Diffstat (limited to 'src/tokenizer/machine.rs')
-rw-r--r--src/tokenizer/machine.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/tokenizer/machine.rs b/src/tokenizer/machine.rs
index 07d4c05..fc31a42 100644
--- a/src/tokenizer/machine.rs
+++ b/src/tokenizer/machine.rs
@@ -1,13 +1,15 @@
+pub(super) mod utils;
+
use crate::entities::try_read_character_reference;
use crate::offset::{Offset, Position};
use crate::token::AttrValueSyntax;
use crate::tokenizer::CdataAction;
-use crate::utils::{
+use crate::{reader::Reader, Emitter, Error, Tokenizer};
+use utils::{
ascii_digit_pat, control_pat, ctostr, noncharacter_pat, surrogate_pat, whitespace_pat,
};
-use crate::{reader::Reader, Emitter, Error, Tokenizer};
-pub use crate::utils::State;
+pub use utils::State;
pub enum ControlToken {
Eof,