Public bug reported:

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
ProcVersionSignature: Ubuntu 4.2.0-35.40-generic 4.2.8-ckt5
Uname: Linux 4.2.0-35-generic x86_64
NonfreeKernelModules: nvidia
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)

** Affects: gedit (Ubuntu)
     Importance: Undecided
         Status: Confirmed


** Tags: amd64 apport-bug wily

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gedit in Ubuntu.
https://bugs.launchpad.net/bugs/1576992

Title:
  <?php ?> inside <h1> not highlighted correctly

Status in gedit package in Ubuntu:
  Confirmed

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
  ProcVersionSignature: Ubuntu 4.2.0-35.40-generic 4.2.8-ckt5
  Uname: Linux 4.2.0-35-generic x86_64
  NonfreeKernelModules: nvidia
  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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gedit/+bug/1576992/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to