reprospect.test.sass.instruction.operand module

reprospect.test.sass.instruction.operand.MODIFIER_MATH: Final[str] = '(?:!|\\-\\||\\-|\\~|\\|)'

Match any math modifier from MathModifier.

reprospect.test.sass.instruction.operand.MODIFIER_MATH_ABS_DELIMITER: Final[str] = '\\|'

Match MathModifier.ABS.

class reprospect.test.sass.instruction.operand.MathModifier(*values)View on GitHub

Bases: StrEnum

Math operand modifier.

ABS = '|'
INV = '~'
NEG = '-'
NEG_ABS = '-|'
NOT = '!'
__str__()

Return str(self).

class reprospect.test.sass.instruction.operand.OperandView on GitHub

Bases: object

Operand patterns.

OPERAND: Final[str] = '[\\w!\\.\\[\\]\\+\\-\\|~]+'

Match any operand.

classmethod mod(opnd: str, *, math: bool | None = None, captured: bool = True) strView on GitHub

Wrap an operand pattern with a math modifier.

classmethod operand() strView on GitHub