After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 341215 - Add php language support to gtksourceview
Add php language support to gtksourceview
Status: RESOLVED INCOMPLETE
Product: gtksourceview
Classification: Platform
Component: Syntax files
1.6.x
Other All
: Normal major
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
Depends on:
Blocks:
 
 
Reported: 2006-05-10 06:35 UTC by Zac Bowling
Modified: 2009-01-19 19:52 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
php lang file in ubuntu 6.10 (dapper) and ubuntu 7.4 (edgy) (4.51 KB, application/xml)
2006-07-26 23:04 UTC, Zac Bowling
Details
test php file (535 bytes, text/html)
2006-07-26 23:05 UTC, Zac Bowling
Details
screenshot of the issue (105.20 KB, image/png)
2006-07-26 23:08 UTC, Zac Bowling
Details

Description Zac Bowling 2006-05-10 06:35:40 UTC
+++ This bug was initially created as a clone of Bug #111060 +++

PHP support is broken. PHP tags do not close in PHP editting with version included in 1.6.x. It doesn't seem like php.lang has enough to properly describe php like older versions. This bug is also in 1.4.x with version included with ubuntu as well.
Comment 1 Zac Bowling 2006-05-10 06:38:03 UTC
I have screenshots of scream and gedit and my C# gtksourceview# unit testing app showing the issues.
Comment 2 Paolo Maggi 2006-07-26 13:54:01 UTC
Could you please attach a PHP file breaking gtksourceview syntax highlighting?

Could you please provide a patch for php.lang ?
Comment 3 Zac Bowling 2006-07-26 23:04:59 UTC
Created attachment 69699 [details]
php lang file in ubuntu 6.10 (dapper) and ubuntu 7.4 (edgy)
Comment 4 Zac Bowling 2006-07-26 23:05:59 UTC
Created attachment 69700 [details]
test php file
Comment 5 Zac Bowling 2006-07-26 23:08:18 UTC
Created attachment 69701 [details]
screenshot of the issue
Comment 6 Zac Bowling 2006-07-26 23:12:32 UTC
email me (or comment and CC me) if you need anything else. I'm using a really really old php.lang file that kind of works but the new concept in the new one is flawed but I'm not sure of a good regex that would fix it.
Comment 7 thelema 2007-06-15 16:09:55 UTC
Here are a pair of gsv2.0 .lang files for php and for html that fix this problem and many other outstanding bugs in php and html modes (html comments are still only conformant to xml, not the full html comment spec)
Comment 8 Yevgen Muntyan 2008-06-20 02:01:07 UTC
Is there still a problem, with our new fancy files?
Comment 9 Christoph Wurm 2009-01-19 19:52:03 UTC
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for.
Thanks!