difftreelog
fix make yaml bare-key safe list closer to original impl
in: master
2 files changed
cmds/jrsonnet/src/main.rsdiffbeforeafterboth--- a/cmds/jrsonnet/src/main.rs
+++ b/cmds/jrsonnet/src/main.rs
@@ -23,6 +23,9 @@
/// Target shell name
shell: Shell,
},
+ Deps {
+ path: String,
+ },
}
#[derive(Parser)]
@@ -83,6 +86,7 @@
if let Some(sub) = opts.sub {
match sub {
+ SubOpts::Deps { path } => todo!(),
SubOpts::Generate { shell } => {
use clap_complete::generate;
let app = &mut Opts::command();
crates/jrsonnet-stdlib/src/manifest/yaml.rsdiffbeforeafterboth79 || string.contains(|c| matches!(c, ':' | '{' | '}' | '[' | ']' | ',' | '#' | '`' | '\"' | '\'' | '\\' | '\0'..='\x06' | '\t' | '\n' | '\r' | '\x0e'..='\x1a' | '\x1c'..='\x1f'))79 || string.contains(|c| matches!(c, ':' | '{' | '}' | '[' | ']' | ',' | '#' | '`' | '\"' | '\'' | '\\' | '\0'..='\x06' | '\t' | '\n' | '\r' | '\x0e'..='\x1a' | '\x1c'..='\x1f'))80 || [80 || [81 // http://yaml.org/type/bool.html81 // http://yaml.org/type/bool.html82 // Note: 'y', 'Y', 'n', 'N', is not quoted deliberately, as in libyaml. PyYAML also parse83 // them as string, not booleans, although it is violating the YAML 1.1 specification.84 // See https://github.com/dtolnay/serde-yaml/pull/83#discussion_r152628088.85 "yes", "Yes", "YES", "no", "No", "NO", "True", "TRUE", "true", "False", "FALSE", "false",82 "yes", "Yes", "YES", "no", "No", "NO", "True", "TRUE", "true", "False", "FALSE", "false",86 "on", "On", "ON", "off", "Off", "OFF", // http://yaml.org/type/null.html83 "on", "On", "ON", "off", "Off", "OFF", // http://yaml.org/type/null.html87 "null", "Null", "NULL", "~",84 "null", "Null", "NULL", "~",85 // > Quoted in std.jsonnet, however, in serde_yaml they were quoted:86 // > Note: 'y', 'Y', 'n', 'N', is not quoted deliberately, as in libyaml. PyYAML also parse87 // > them as string, not booleans, although it is violating the YAML 1.1 specification.88 // > See https://github.com/dtolnay/serde-yaml/pull/83#discussion_r152628088.89 "y", "Y", "n", "N",90 "-.inf", "+.inf", ".inf",91 "-", "---", ""88 ].contains(&string)92 ].contains(&string)89 || (string.chars().all(|c| matches!(c, '0'..='9' | '-'))93 || (string.chars().all(|c| matches!(c, '0'..='9' | '-'))90 && string.chars().filter(|c| *c == '-').count() == 2)94 && string.chars().filter(|c| *c == '-').count() == 2)