mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 11:05:40 +02:00
issue1332 - Fix for yamls with unquoted double curly braces (#1988)
* Gnarly hardcoded fix * Whoops remove println
This commit is contained in:
@ -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()
|
||||
}}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user