isStandardSyntaxComment.cjs 560 B

12345678910111213141516171819
  1. // NOTICE: This file is generated by Rollup. To modify it,
  2. // please instead edit the ESM counterpart and rebuild with Rollup (npm run build).
  3. 'use strict';
  4. /**
  5. * @param {import('postcss').Comment} comment
  6. * @returns {boolean}
  7. */
  8. function isStandardSyntaxComment(comment) {
  9. // We check both here because the Sass parser uses `raws.inline` to indicate
  10. // inline comments, while the Less parser uses `inline`.
  11. if ('inline' in comment) return false;
  12. if ('inline' in comment.raws) return false;
  13. return true;
  14. }
  15. module.exports = isStandardSyntaxComment;