Bug 429651 - wrong PHP syntax highlight
Summary: wrong PHP syntax highlight
Status: RESOLVED FIXED
Alias: None
Product: frameworks-syntax-highlighting
Classification: Frameworks and Libraries
Component: syntax (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-25 17:00 UTC by php4fan
Modified: 2021-02-07 21:02 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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