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 655536 - Syntax highlighting fails with -s function in Perl
Syntax highlighting fails with -s function in Perl
Status: RESOLVED DUPLICATE of bug 594501
Product: gtksourceview
Classification: Platform
Component: Syntax files
3.4.x
Other Linux
: Normal trivial
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
Depends on:
Blocks:
 
 
Reported: 2011-07-28 20:03 UTC by owhite
Modified: 2013-03-29 18:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot illustrating problem (34.70 KB, image/png)
2011-07-28 20:03 UTC, owhite
Details

Description owhite 2011-07-28 20:03:20 UTC
Created attachment 192835 [details]
screenshot illustrating problem

When gedit v2.30.3 is editing a Perl script, use of Perl's -s function causes text following it to be treated as a string for the purposes of text-colouring.

my $a = -s "~/.bashrc"; # The closing quote, semicolon, and this comment are all syntax-highlighted as being regular expression or string
Comment 1 Sebastien Bacher 2012-06-06 11:52:56 UTC
there is a suggested patch from "nmz (s-namitha-s)" on https://launchpadlibrarian.net/106997370/diff_perl.txt
Comment 2 Artem S Vybornov 2012-08-28 15:24:01 UTC
Seems to be duplicate of 594501
Comment 3 Carnë Draug 2013-03-29 18:28:20 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

*** This bug has been marked as a duplicate of bug 594501 ***