mirror of
https://github.com/OliveTin/OliveTin
synced 2025-12-18 03:55:32 +00:00
14 lines
374 B
JavaScript
14 lines
374 B
JavaScript
/**
|
|
* @param {import('postcss').Comment} comment
|
|
* @returns {boolean}
|
|
*/
|
|
export default function isStandardSyntaxComment(comment) {
|
|
// We check both here because the Sass parser uses `raws.inline` to indicate
|
|
// inline comments, while the Less parser uses `inline`.
|
|
if ('inline' in comment) return false;
|
|
|
|
if ('inline' in comment.raws) return false;
|
|
|
|
return true;
|
|
}
|