Summary: | syntax highlighting not working when PHP inset is in JS function | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-syntax-highlighting | Reporter: | Steve V. <blauesnichts> |
Component: | syntax | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED WORKSFORME | ||
Severity: | minor | CC: | gszymaszek, ilmari.lauhakangas |
Priority: | NOR | ||
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
Screenshot of syntax highlighting with the error
Screenshot of syntax highlighting with PHP inset commented out |
Description
Steve V.
2016-03-07 20:56:22 UTC
Created attachment 97752 [details]
Screenshot of syntax highlighting with the error
Created attachment 97753 [details]
Screenshot of syntax highlighting with PHP inset commented out
I confirm the result when using HTML highlighting. Arch Linux 64-bit Kate 16.04.2 KDE Frameworks 5.23.0 Qt 5.7 xcb wm I cannot reproduce this bug (i.e. syntax highlighting works correctly) under Frameworks 5.51 (Debian testing) and 5.54, using Qt 5.11.3 in both cases. It’s probably fixed, though I don’t know the exact commit. (In reply to gszymaszek from comment #4) > I cannot reproduce this bug (i.e. syntax highlighting works correctly) under > Frameworks 5.51 (Debian testing) and 5.54, using Qt 5.11.3 in both cases. > It’s probably fixed, though I don’t know the exact commit. Did you set highlighting to "HTML"? I still repro on Arch Linux. Kate 18.12.1 KDE Frameworks 5.53.0 Qt 5.12.0 No, I use “PHP (HTML)”. And it probably should be used in this case. KWrite may choose wrong language if the extension is html (not php/phtml). (In reply to gszymaszek from comment #6) > No, I use “PHP (HTML)”. And it probably should be used in this case. KWrite > may choose wrong language if the extension is html (not php/phtml). Ok, then it was a user error. Closing. |