hyperbuild 0.2.4

Fast allocation-less HTML minifier with smart whitespace handling
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::err::ProcessingResult;
use crate::proc::MatchAction::*;
use crate::proc::MatchMode::*;
use crate::proc::Processor;

pub fn process_bang(proc: &mut Processor) -> ProcessingResult<()> {
    proc.m(IsSeq(b"<!"), Keep).expect();
    proc.m(WhileNotChar(b'>'), Keep);
    proc.m(IsChar(b'>'), Keep).require("Bang close")?;
    Ok(())
}