issue1332 - Fix for yamls with unquoted double curly braces (#1988)

* Gnarly hardcoded fix

* Whoops remove println
This commit is contained in:
Arash Outadi
2020-06-16 12:12:04 -07:00
committed by GitHub
parent 831111edec
commit eb1ada6115
2 changed files with 85 additions and 20 deletions

View File

@ -215,4 +215,13 @@ pub mod value {
))
.into_untagged_value())
}
#[macro_export]
macro_rules! row {
($( $key: expr => $val: expr ),*) => {{
let mut map = indexmap::IndexMap::new();
$( map.insert($key, $val); )*
UntaggedValue::row(map).into_untagged_value()
}}
}
}