prettier 1.9.1 → 1.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -4
- package/bin-prettier.js +40201 -0
- package/index.js +17486 -11446
- package/package.json +8 -8
- package/parser-babylon.js +1 -1
- package/parser-flow.js +1 -1
- package/parser-glimmer.js +1964 -0
- package/parser-graphql.js +1 -1
- package/parser-markdown.js +1 -1
- package/parser-parse5.js +1 -1
- package/parser-postcss.js +10 -0
- package/parser-typescript.js +1 -1
- package/parser-vue.js +1 -0
- package/third-party.js +193 -295
- package/bin/prettier.js +0 -21010
package/parser-postcss.js
CHANGED
|
@@ -28327,6 +28327,16 @@ module.exports = function(module) {
|
|
|
28327
28327
|
const createError = __webpack_require__(91);
|
|
28328
28328
|
|
|
28329
28329
|
function parseSelector(selector) {
|
|
28330
|
+
// If there's a comment inside of a selector, the parser tries to parse
|
|
28331
|
+
// the content of the comment as selectors which turns it into complete
|
|
28332
|
+
// garbage. Better to print the whole selector as-is and not try to parse
|
|
28333
|
+
// and reformat it.
|
|
28334
|
+
if (selector.match(/\/\/|\/\*/)) {
|
|
28335
|
+
return {
|
|
28336
|
+
type: "selector-comment",
|
|
28337
|
+
value: selector
|
|
28338
|
+
};
|
|
28339
|
+
}
|
|
28330
28340
|
const selectorParser = __webpack_require__(89);
|
|
28331
28341
|
let result;
|
|
28332
28342
|
selectorParser(result_ => {
|