<?php ?> inside <h1> not highlighted correctly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gtksourceview3 (Ubuntu) |
Expired
|
Low
|
Unassigned |
Bug Description
I wanted to report this upstream but couldn't figure out where in less than a minute, so I give up and leave that to anyone who will triage this bug.
This is yet another screwup in the syntax highlighting of php code. See the screenshot, it speaks for itself.
From some comment I read about other php syntax highlight issues, I seem to remember that 100%-correct syntax highlight for PHP (that is, matching how the code is _really_ interpreted in reality) is not even theoretically possible with the tool that Gedit currently uses for language definitions (which is, if that is true, poorly designed or the wrong tool).
(example: complex nesting of <?php ?> blocks within "" in html attributes or within <script></script> tags, etc)
However, trivial cases like this one should be possible to fix trivially.
ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: gedit 3.10.4-0ubuntu13
ProcVersionSign
Uname: Linux 4.2.0-35-generic x86_64
NonfreeKernelMo
ApportVersion: 2.19.1-0ubuntu5
Architecture: amd64
CurrentDesktop: Unity
Date: Sat Apr 30 16:46:37 2016
InstallationDate: Installed on 2013-10-11 (931 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
SourcePackage: gedit
UpgradeStatus: Upgraded to wily on 2016-01-18 (103 days ago)
screenshot