Function tagua_parser::rules::skip::skip []

pub fn skip(i: &[u8]) -> IResult<&[u8]Vec<&[u8]>, u32>

Recognize all tokens to skip.

A skip token is a token that is not relevant for the understanding of the language. It is present for comestic reasons only.

Examples

use tagua_parser::Result;
use tagua_parser::rules::skip::skip;

assert_eq!(
    skip(b"/* foo */ \n\thello"),
    Result::Done(&b"hello"[..], vec![&b" foo "[..], &b" \n\t"[..]])
);Run