Bug 429651

Summary: wrong PHP syntax highlight
Product: [Frameworks and Libraries] frameworks-syntax-highlighting Reporter: php4fan
Component: syntaxAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: christoph, walter.von.entferndt
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description php4fan 2020-11-25 17:00:05 UTC
See this https://bugzilla.suse.com/show_bug.cgi?id=1179207

Operating System: openSUSE Tumbleweed 20201117
KDE Plasma Version: 5.20.3
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.1
Kernel Version: 5.9.1-1-default
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-1065G7 CPU @ 1.30GHz
Memory: 7.3 GiB of RAM
Graphics Processor: Mesa DRI Intel® Iris® Plus Graphics
Comment 1 Bug Janitor Service 2021-02-07 17:16:05 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/syntax-highlighting/-/merge_requests/165
Comment 2 Jonathan Poelen 2021-02-07 21:02:54 UTC
Git commit 773cfb8a0d09b3ddfac79e4ed721f66df5668e20 by Jonathan Poelen.
Committed on 07/02/2021 at 20:48.
Pushed by cullmann into branch 'master'.

PHP: fix string, number and folding region ; refactor styles

- new styles: Symbol, Operator, Scope Resolution, Error Control Operator, Cast, Heredoc, Nowdoc
- remove hard colors
- fix folding region of alternate block / ternary
- fix variable expansion in string and heredoc
- fix '_' in a number
- add missing keywords (yield from, parent, self, ...)
- add some functions / constants

M  +177  -37   autotests/folding/highlight.php.fold
M  +158  -18   autotests/html/highlight.php.dark.html
M  +158  -18   autotests/html/highlight.php.html
M  +2    -2    autotests/html/test.css.dark.html
M  +2    -2    autotests/html/test.css.html
M  +141  -1    autotests/input/highlight.php
M  +153  -13   autotests/reference/highlight.php.ref
M  +2    -2    autotests/reference/test.css.ref
M  +4    -4    autotests/reference/test.markdown.ref
M  +356  -176  data/syntax/php.xml

https://invent.kde.org/frameworks/syntax-highlighting/commit/773cfb8a0d09b3ddfac79e4ed721f66df5668e20