https://bugs.kde.org/show_bug.cgi?id=383632

Heiko Becker <heire...@exherbo.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
      Latest Commit|                            |https://commits.kde.org/syn
                   |                            |tax-highlighting/ad077e4045
                   |                            |e650e1708b6c81d33a14f4a9c99
                   |                            |a5d
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #2 from Heiko Becker <heire...@exherbo.org> ---
Git commit ad077e4045e650e1708b6c81d33a14f4a9c99a5d by Heiko Becker.
Committed on 23/08/2017 at 14:16.
Pushed by heikobecker into branch 'master'.

Escape hyphen in rest.xml regular expressions

Summary:
The unescaped hyphen caused a build failure with pcre2-10.30 due to a broken
regex: 'syntax-highlighting/data/syntax/rest.xml" line 27 broken regex:
"^\\s*\\.\\. [w-_\\.]+::(\\s|$)" problem: "range out of order in character
class" at offset 12'.

The pcre2pattern documentation says this:

"Perl treats a hyphen as a literal if it appears before or after a POSIX class
(see below) or before or after a character type escape such as as \d or \H.
However, unless the hyphen is the last character in the class, Perl outputs a
warning in its warning mode, as this is most likely a user error. As PCRE2 has
no facility for warning, an error is given in these cases."

Test Plan:
cmake && make && make test works fine pcre2-10.30, quick look at
http://docutils.sourceforge.net/FAQ.txt in kate seems fine.

Reviewers: #framework_syntax_hightlighting, kfunk

Subscribers: #frameworks

Tags: #frameworks

Differential Revision: https://phabricator.kde.org/D7478

M  +6    -6    data/syntax/rest.xml

https://commits.kde.org/syntax-highlighting/ad077e4045e650e1708b6c81d33a14f4a9c99a5d

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to