Summary: | perl syntax highlightning not working correctly with regex when using \/ | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Michael Virnstein <michael.virnstein> |
Component: | syntax | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | images showing the that "it works here" |
Description
Michael Virnstein
2004-03-11 11:09:05 UTC
Syntax highlighting is done by katepart. Reassigning. version 3.0.1 of what? Kate is currently at 2.2. You should try updating the file KDEDIR/share/apps/katepart/syntax/perl.xml, you can grab it at http://kate.kde.org or use the "download" button in the highlight page of the editor dialog. The latest available version is 1.10 i think. If that works, please close this bug, otherwise tell me here. this bug was reported for KDevelop 3.0.1 on KDE 3.1.4, but was moved from "Jens Dagerbo" to kate as it seems. i tested the new perl.xml from http://kate.kde.org but there's still the same problem when using KDevelop with the code above. Created attachment 5178 [details]
images showing the that "it works here"
As you can see from the attached screenshot, it works here.
I haven't access to kde version 3.1.4 anymore, so my best suggestion is to use
the power of perl, and change your code to use a different delimiter:
s|/$||;
if you have control over the source.
Apart from that, make sure that the new version of perl.xml is actually the one
used -- if you installed it in a global directory, make sure that you don't
have a local copy in ~/.kde (or whatever your KDEHOME is set to)
I also suggest you update your system if possible, katepart (and the whole of
KDE for that matter) has improved vastly since your version was released.
If nobody can confirm this over the weekend, I'll mark it as invalid on Monday. With KDE 3.2.1 the problem is solved |