minify-html 0.3.7

Fast and smart HTML + JS minifier
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;

#[inline(always)]
pub fn process_bang(proc: &mut Processor) -> ProcessingResult<()> {
    proc.m(IsSeq(b"<!"), Keep).expect();
    proc.m(ThroughChar(b'>'), Keep).require("bang close")?;
    Ok(())
}