| Summary: | PHP "heredoc" sintax not properly highlighted | ||
|---|---|---|---|
| Product: | [Applications] kate | Reporter: | Rafael Linux User <rafael.linux.user> |
| Component: | syntax | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | alain, christoph, ilmari.lauhakangas, rafael.linux.user, raypapworth |
| Priority: | NOR | ||
| Version First Reported In: | 16.04.1 | ||
| Target Milestone: | --- | ||
| Platform: | openSUSE | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Rafael Linux User
2015-09-25 09:21:47 UTC
Confirmed. Arch Linux 64-bit Kate 16.04.2 KDE Frameworks 5.23.0 Qt 5.7 xcb wm Works for me with KF5 based master. Perhaps I pasted the text wrongly in the editor, if you still can reproduce, please attach a test file. Works correctly if the closing identifier is at the beginning of the line but not otherwise. The PHP manual says "Prior to PHP 7.3.0, the closing identifier must begin in the first column of the line." The syntax highlighting algorithm needs to be updated to remove this requirement. A possibly relevant merge request was started @ https://invent.kde.org/frameworks/syntax-highlighting/-/merge_requests/317 (In reply to Christoph Cullmann from comment #2) > Works for me with KF5 based master. > Perhaps I pasted the text wrongly in the editor, if you still can reproduce, > please attach a test file. It seem(In reply to Ray from comment #3) > Works correctly if the closing identifier is at the beginning of the line > but not otherwise. > The PHP manual says "Prior to PHP 7.3.0, the closing identifier must begin > in the first column of the line." > The syntax highlighting algorithm needs to be updated to remove this > requirement. It seems working for my test example, while end of heredoc is aligned to left margin, as you wrote. Thank you Fixed by https://invent.kde.org/frameworks/syntax-highlighting/-/merge_requests/317 Will be fixed in KDE Gear 22.08. |