mirror of
https://github.com/OliveTin/OliveTin
synced 2025-12-18 03:55:32 +00:00
16 lines
338 B
JavaScript
16 lines
338 B
JavaScript
import isSharedLineComment from './isSharedLineComment.mjs';
|
|
|
|
/**
|
|
* @param {import('postcss').Node} node
|
|
* @returns {boolean}
|
|
*/
|
|
export default function isAfterComment(node) {
|
|
const previousNode = node.prev();
|
|
|
|
if (!previousNode || previousNode.type !== 'comment') {
|
|
return false;
|
|
}
|
|
|
|
return !isSharedLineComment(previousNode);
|
|
}
|