Closed grahamc closed 4 years ago
As of YAML 1.2, YAML is an official super of JSON (https://yaml.org/spec/1.2/spec.html), however yaml-mode formats JSON like:
{ "language": "nix", "nix": "2.1", "matrix": { "include": [ { "name": "cargo pedantry", "script": "nix-shell --run checkPhase --arg useNix1 false -A mozilla-rust-overlay" }, { "name": "checkPhase", "script": "nix-shell --run checkPhase --arg useNix1 false" } ] } }
Sorry, but no. Just because it can be done, I won't add the whole indentation/highlighting machinery of an existing JSON/JS mode to this package. Use a JSON mode instead.
As of YAML 1.2, YAML is an official super of JSON (https://yaml.org/spec/1.2/spec.html), however yaml-mode formats JSON like: