diff --git a/examples/simple-jsbeautifyrc/.jsbeautifyrc b/examples/simple-jsbeautifyrc/.jsbeautifyrc index bd46128..650b9c1 100644 --- a/examples/simple-jsbeautifyrc/.jsbeautifyrc +++ b/examples/simple-jsbeautifyrc/.jsbeautifyrc @@ -8,5 +8,5 @@ "max_preserve_newlines": 2, "jslint_happy": true, "indent_handlebars": true, - "object": {} + "object": {} } diff --git a/examples/simple-jsbeautifyrc/alphasort1.scss b/examples/simple-jsbeautifyrc/alphasort1.scss new file mode 100644 index 0000000..9b5e86b --- /dev/null +++ b/examples/simple-jsbeautifyrc/alphasort1.scss @@ -0,0 +1,4 @@ +.example(){ + .base-apple(); // Sets base apple color to red + .apple-color(@color-green); // Sets apple color to green +} diff --git a/lib/langs/less-beautify.coffee b/lib/langs/less-beautify.coffee index 2edb1dc..b1ff492 100644 --- a/lib/langs/less-beautify.coffee +++ b/lib/langs/less-beautify.coffee @@ -7,6 +7,7 @@ module.exports = (text, options, callback) -> mode: "beautify" inchar: options.indent_character insize: options.indent_size + alphasort: options.alphasort || false output = prettydiff.api(args) result = output[0]