Bug 1799982 - Remove uses of inline flags from XPIDL regexps. r=xpcom-reviewers,kmag
authorAndrew McCreight <continuation@gmail.com>
Thu, 10 Nov 2022 20:16:52 +0000 (20:16 +0000)
committerMike Hommey <glandium@debian.org>
Tue, 17 Jan 2023 20:33:36 +0000 (20:33 +0000)
commit83eed787c2b4f92244e2e2ee5dcb8dbb96a2bd28
tree7a723b1d8ce440ad3f4951585898e34d3dae3721
parent3028d0c53b941d56696e98c819a7da4941f8eaa0
Bug 1799982 - Remove uses of inline flags from XPIDL regexps. r=xpcom-reviewers,kmag

Apparently the use of these is being turned into an error in Python 3.11.
Fortunately, our uses appears to be rather trivial.

For t_multilinecomment and t_LCDATA, I dropped the (?s) flag and just
replaced the one use of . with (\n|.). (?s) means DOTALL, which means
that dot includes any character, including a newline. Otherwise it means
dot includes any character except a newline.

I took the new t_singlelinecomment from IPDL's parser.py, so I assume
it is reasonable enough. t_multilinecomment is also now the same as
in IPDL.

Differential Revision: https://phabricator.services.mozilla.com/D161738

Gbp-Pq: Topic fixes
Gbp-Pq: Name Bug-1799982-Remove-uses-of-inline-flags-from-XPIDL-r.patch
xpcom/idl-parser/xpidl/xpidl.py