2019-12-25 21:47:18 -05:00
|
|
|
use crate::err::ProcessingResult;
|
2020-01-25 02:04:02 -05:00
|
|
|
use crate::proc::MatchAction::*;
|
|
|
|
use crate::proc::MatchMode::*;
|
2020-01-25 02:07:52 -05:00
|
|
|
use crate::proc::Processor;
|
2019-12-25 04:44:51 -05:00
|
|
|
|
2019-12-25 21:47:18 -05:00
|
|
|
pub fn process_bang(proc: &mut Processor) -> ProcessingResult<()> {
|
2020-01-26 04:32:06 -05:00
|
|
|
proc.m(IsSeq(b"<!"), Keep).expect();
|
|
|
|
proc.m(WhileNotChar(b'>'), Keep);
|
|
|
|
proc.m(IsChar(b'>'), Keep).require("Bang close")?;
|
2019-12-25 04:44:51 -05:00
|
|
|
Ok(())
|
|
|
|
}
|