Fix comments inside map (#11920)
This commit is contained in:
1 parent
71d0d1d2e9
commit
7bce1d02c7
8 files changed
+158
-2
No files matched your search
@@ -0,0 +1,30 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`at-rule-with-comments.scss format 1`] = `
|
||||
====================================options=====================================
|
||||
parsers: ["scss"]
|
||||
printWidth: 80
|
||||
| printWidth
|
||||
=====================================input======================================
|
||||
.ag-theme-balham {
|
||||
@include ag-theme-balham(
|
||||
(
|
||||
foreground-color: $custom-foreground-color,
|
||||
disabled-foreground-color: null, // TODO some comment
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
=====================================output=====================================
|
||||
.ag-theme-balham {
|
||||
@include ag-theme-balham(
|
||||
(
|
||||
foreground-color: $custom-foreground-color,
|
||||
disabled-foreground-color: null,
|
||||
// TODO some comment
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
================================================================================
|
||||
`;
|
||||
@@ -0,0 +1,8 @@
|
||||
.ag-theme-balham {
|
||||
@include ag-theme-balham(
|
||||
(
|
||||
foreground-color: $custom-foreground-color,
|
||||
disabled-foreground-color: null, // TODO some comment
|
||||
)
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
run_spec(__dirname, ["scss"]);
|
||||
@@ -189,6 +189,59 @@ body {
|
||||
================================================================================
|
||||
`;
|
||||
|
||||
exports[`arbitrary-arguments-comment.scss - {"trailingComma":"none"} format 1`] = `
|
||||
====================================options=====================================
|
||||
parsers: ["scss"]
|
||||
printWidth: 80
|
||||
trailingComma: "none"
|
||||
| printWidth
|
||||
=====================================input======================================
|
||||
@include bar (
|
||||
rgba(
|
||||
50
|
||||
50
|
||||
.50
|
||||
50 ...
|
||||
// comment
|
||||
)
|
||||
)
|
||||
|
||||
=====================================output=====================================
|
||||
@include bar(
|
||||
rgba(
|
||||
50 50 0.5 50... // comment
|
||||
)
|
||||
);
|
||||
|
||||
================================================================================
|
||||
`;
|
||||
|
||||
exports[`arbitrary-arguments-comment.scss format 1`] = `
|
||||
====================================options=====================================
|
||||
parsers: ["scss"]
|
||||
printWidth: 80
|
||||
| printWidth
|
||||
=====================================input======================================
|
||||
@include bar (
|
||||
rgba(
|
||||
50
|
||||
50
|
||||
.50
|
||||
50 ...
|
||||
// comment
|
||||
)
|
||||
)
|
||||
|
||||
=====================================output=====================================
|
||||
@include bar(
|
||||
rgba(
|
||||
50 50 0.5 50... // comment
|
||||
)
|
||||
);
|
||||
|
||||
================================================================================
|
||||
`;
|
||||
|
||||
exports[`comments.scss - {"trailingComma":"none"} format 1`] = `
|
||||
====================================options=====================================
|
||||
parsers: ["scss"]
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
@include bar (
|
||||
rgba(
|
||||
50
|
||||
50
|
||||
.50
|
||||
50 ...
|
||||
// comment
|
||||
)
|
||||
)
|
||||
Reference in new issue
Block a user