File python-311.patch of Package python-pyScss

From 60414f5d573315a8458b5fbcdf69e5c648c44a9a Mon Sep 17 00:00:00 2001
From: tst <timo.stueber@contact-software.com>
Date: Thu, 3 Nov 2022 14:50:05 +0100
Subject: [PATCH] fix error: global flags not at the start of the expression at
 position 1

---
 scss/grammar/expression.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: pyScss-1.4.0/scss/grammar/expression.py
===================================================================
--- pyScss-1.4.0.orig/scss/grammar/expression.py
+++ pyScss-1.4.0/scss/grammar/expression.py
@@ -86,7 +86,7 @@ class SassExpressionScanner(Scanner):
         ('VAR', '\\$[-a-zA-Z0-9_]+'),
         ('LITERAL_FUNCTION', '(-moz-calc|-webkit-calc|calc|expression|progid:[\\w.]+)(?=[(])'),
         ('ALPHA_FUNCTION', 'alpha(?=[(])'),
-        ('OPACITY', '((?i)opacity)'),
+        ('OPACITY', '(?i)(opacity)'),
         ('URL_FUNCTION', 'url(?=[(])'),
         ('IF_FUNCTION', 'if(?=[(])'),
         ('FNCT', '[-a-zA-Z_][-a-zA-Z0-9_]*(?=\\()'),
openSUSE Build Service is sponsored by