2022-07-15 13:57:23 +00:00
|
|
|
diff -up firefox-102.0/xpcom/idl-parser/xpidl/xpidl.py.build-python-3.11 firefox-102.0/xpcom/idl-parser/xpidl/xpidl.py
|
|
|
|
--- firefox-102.0/xpcom/idl-parser/xpidl/xpidl.py.build-python-3.11 2022-06-23 09:10:31.000000000 +0200
|
2022-07-15 14:19:14 +00:00
|
|
|
+++ firefox-102.0/xpcom/idl-parser/xpidl/xpidl.py 2022-07-15 16:18:52.048351493 +0200
|
2022-07-15 13:57:23 +00:00
|
|
|
@@ -1572,13 +1572,13 @@ class IDLParser(object):
|
2022-07-15 12:46:05 +00:00
|
|
|
t_ignore = " \t"
|
|
|
|
|
|
|
|
def t_multilinecomment(self, t):
|
|
|
|
- r"/\*(?s).*?\*/"
|
|
|
|
+ r"/\*(?s:.)*?\*/"
|
|
|
|
t.lexer.lineno += t.value.count("\n")
|
|
|
|
if t.value.startswith("/**"):
|
|
|
|
self._doccomments.append(t.value)
|
2022-07-15 13:57:23 +00:00
|
|
|
|
|
|
|
def t_singlelinecomment(self, t):
|
|
|
|
- r"(?m)//.*?$"
|
|
|
|
+ r"(?m://.*?$)"
|
|
|
|
|
|
|
|
def t_IID(self, t):
|
|
|
|
return t
|
2022-07-15 14:19:14 +00:00
|
|
|
@@ -1591,7 +1591,7 @@ class IDLParser(object):
|
|
|
|
return t
|
|
|
|
|
|
|
|
def t_LCDATA(self, t):
|
|
|
|
- r"(?s)%\{[ ]*C\+\+[ ]*\n(?P<cdata>.*?\n?)%\}[ ]*(C\+\+)?"
|
|
|
|
+ r"(?s:%\{[ ]*C\+\+[ ]*\n(?P<cdata>.*?\n?)%\}[ ]*(C\+\+)?)"
|
|
|
|
t.type = "CDATA"
|
|
|
|
t.value = t.lexer.lexmatch.group("cdata")
|
|
|
|
t.lexer.lineno += t.value.count("\n")
|