4
0

isStandardSyntaxComment.mjs 374 B

12345678910111213
  1. /**
  2. * @param {import('postcss').Comment} comment
  3. * @returns {boolean}
  4. */
  5. export default function isStandardSyntaxComment(comment) {
  6. // We check both here because the Sass parser uses `raws.inline` to indicate
  7. // inline comments, while the Less parser uses `inline`.
  8. if ('inline' in comment) return false;
  9. if ('inline' in comment.raws) return false;
  10. return true;
  11. }