[pcre-dev] [Bug 2158] New: PCRE2 10.30 doesn't accept some r…

Kezdőlap
Üzenet törlése
Szerző: admin
Dátum:  
Címzett: pcre-dev
Tárgy: [pcre-dev] [Bug 2158] New: PCRE2 10.30 doesn't accept some regular expressions with character classes anymore
https://bugs.exim.org/show_bug.cgi?id=2158

            Bug ID: 2158
           Summary: PCRE2 10.30 doesn't accept some regular expressions
                    with character classes anymore
           Product: PCRE
           Version: 10.30 (PCRE2)
          Hardware: x86-64
                OS: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
          Assignee: ph10@???
          Reporter: heirecka@???
                CC: pcre-dev@???


I encountered this when trying to build syntax-highlighting [1]. It uses pcre2
via Qt (5.9.1 in my case) and started failing to build with 10.30 where it
worked with 10.23 before. The output marked the following regexes in this file
[2] as broken:

^\s*\.\. [\w-_\.]+::(\s|$)
^(\s*)\.\.\s(?![\w-_\.]+::(\s|$))
`[^\s].*`(?=:[\w-_\.\+]+:)
:[\w-_\.\+]+:(?=`)
:[\w-_\.\+]+:

Its output:

"/home/heiko/Quelltexte/exherbo/git-sources/frameworks/syntax-highlighting/data/syntax/rest.xml"
line 27 broken regex: "^\\s*\\.\\. [w-_\\.]+::(\\s|$)" problem: "range out of
order in character class" at offset 12
"/home/heiko/Quelltexte/exherbo/git-sources/frameworks/syntax-highlighting/data/syntax/rest.xml"
line 31 broken regex: "^(\\s*)\\.\\.\\s(?![w-_\\.]+::(\\s|$))" problem: "range
out of order in character class" at offset 18
"/home/heiko/Quelltexte/exherbo/git-sources/frameworks/syntax-highlighting/data/syntax/rest.xml"
line 41 broken regex: "(^|[-\\s'\"\\(\\[{</:‘“’«¡¿‐‑‒–—
])`[^\\s].*`(?=:[w-_\\.\\+]+:)" problem: "range out of order in character
class" at offset 47
"/home/heiko/Quelltexte/exherbo/git-sources/frameworks/syntax-highlighting/data/syntax/rest.xml"
line 42 broken regex: ":[w-_\\.\\+]+:(?=`)" problem: "range out of order in
character class" at offset 4
"/home/heiko/Quelltexte/exherbo/git-sources/frameworks/syntax-highlighting/data/syntax/rest.xml"
line 59 broken regex: ":[w-_\\.\\+]+:" problem: "range out of order in
character class" at offset 4

Not sure how reliable this is, but https://regex101.com/ accepts them.

[1] https://cgit.kde.org/syntax-highlighting.git
[2] https://cgit.kde.org/syntax-highlighting.git/tree/data/syntax/rest.xml

--
You are receiving this mail because:
You are on the CC list for the bug.