Example
$var: /* comment 1 */ all /* comment 2 */ !import /* comment 3 */ ; /* comment 4 */
Parse as
Declaration {
raws:
{ before: '',
between: ': /* comment 1 */ ',
important: ' !important /* comment 3 */ ',
value: { value: 'all ', raw: 'all /* comment 2 */' } },
type: 'css-decl',
source:
{ start: { line: 1, column: 1 },
input:
Input {
css: '$var: /* comment 1 */ all /* comment 2 */ !important /* comment 3 */ ; /* comment 4 */\n',
id: '<input css 1>' },
end: { line: 1, column: 70 } },
prop: '$var',
important: true,
value: 'all ' }
It should be easy for implement, if you accept i will do PR.
Use case - for prettier, don't eat comment and don't parse inside package. Thanks!
Example
Parse as
Declaration { raws: { before: '', between: ': /* comment 1 */ ', important: ' !important /* comment 3 */ ', value: { value: 'all ', raw: 'all /* comment 2 */' } }, type: 'css-decl', source: { start: { line: 1, column: 1 }, input: Input { css: '$var: /* comment 1 */ all /* comment 2 */ !important /* comment 3 */ ; /* comment 4 */\n', id: '<input css 1>' }, end: { line: 1, column: 70 } }, prop: '$var', important: true, value: 'all ' }It should be easy for implement, if you accept i will do PR.
Use case - for prettier, don't eat comment and don't parse inside package. Thanks!