Add parser support for the math helper.

This commit is contained in:
Tom Alexander
2020-06-13 12:03:55 -04:00
parent c5db1cea8f
commit 6877e3d393
3 changed files with 8 additions and 1 deletions

View File

@@ -47,6 +47,7 @@ pub enum DustTag<'a> {
DTHelperSelect(ParameterizedBlock<'a>),
DTHelperAny(ParameterizedBlock<'a>),
DTHelperNone(ParameterizedBlock<'a>),
DTHelperMath(ParameterizedBlock<'a>),
}
#[derive(Clone, Debug, PartialEq)]
@@ -279,6 +280,10 @@ fn dust_tag_helper(i: &str) -> IResult<&str, DustTag> {
parameterized_block("{@", &tag_to_path("none")),
DustTag::DTHelperNone,
),
map(
parameterized_block("{@", &tag_to_path("math")),
DustTag::DTHelperMath,
),
))(i)
}