Pier Angelo Vendrame pushed to branch tor-browser-102.7.0esr-12.5-1 at The Tor Project / Applications / Tor Browser
Commits:
-
9e5dcf54
by Andrew McCreight at 2023-01-30T18:59:35+01:00
1 changed file:
Changes:
... | ... | @@ -1572,13 +1572,13 @@ class IDLParser(object): |
1572 | 1572 | t_ignore = " \t"
|
1573 | 1573 | |
1574 | 1574 | def t_multilinecomment(self, t):
|
1575 | - r"/\*(?s).*?\*/"
|
|
1575 | + r"/\*(\n|.)*?\*/"
|
|
1576 | 1576 | t.lexer.lineno += t.value.count("\n")
|
1577 | 1577 | if t.value.startswith("/**"):
|
1578 | 1578 | self._doccomments.append(t.value)
|
1579 | 1579 | |
1580 | 1580 | def t_singlelinecomment(self, t):
|
1581 | - r"(?m)//.*?$"
|
|
1581 | + r"//[^\n]*"
|
|
1582 | 1582 | |
1583 | 1583 | def t_IID(self, t):
|
1584 | 1584 | return t
|
... | ... | @@ -1591,7 +1591,7 @@ class IDLParser(object): |
1591 | 1591 | return t
|
1592 | 1592 | |
1593 | 1593 | def t_LCDATA(self, t):
|
1594 | - r"(?s)%\{[ ]*C\+\+[ ]*\n(?P<cdata>.*?\n?)%\}[ ]*(C\+\+)?"
|
|
1594 | + r"%\{[ ]*C\+\+[ ]*\n(?P<cdata>(\n|.)*?\n?)%\}[ ]*(C\+\+)?"
|
|
1595 | 1595 | t.type = "CDATA"
|
1596 | 1596 | t.value = t.lexer.lexmatch.group("cdata")
|
1597 | 1597 | t.lexer.lineno += t.value.count("\n")
|