[prev in list] [next in list] [prev in thread] [next in thread]
List: kwrite-devel
Subject: [Bug 105011] New: perl regexp with parenthesis {} inside same {} as
From: adam <moldovenu () gmail ! com>
Date: 2005-05-03 11:32:51
Message-ID: 20050503133250.105011.moldovenu () gmail ! com
[Download RAW message or body]
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=105011
Summary: perl regexp with parenthesis {} inside same {} as
delimiter - "catching first" - highlighting errors
Product: kate
Version: 2.3.2
Platform: unspecified
OS/Version: FreeBSD
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: syntax
AssignedTo: kwrite-devel kde org
ReportedBy: moldovenu gmail com
Version: 2.3.2 (using KDE 3.3.2, compiled sources)
Compiler: gcc version 3.4.2 [FreeBSD] 20040728
OS: FreeBSD (i386) release 5.3-STABLE
Example:
s/abc/def/; - ok ;)
s{abc}{def}; - ok!
s{$ref->{key}}{$bar}; - not ok
s{$haash{key}}{$bar}; - not ok
because first parenthese in col 2 matches first closed "}" in 13 col.
It brakes code folding and highlighting the rest of perl file in editor.
It should highlight the same way like this code: (put cursor in col 1).
{$ref->{key}}{$bar};
I checked it with the perl.xml 1.37.2.5 from CVS but still got the same.
I like regexps written in parenthesis instead of s/// because it's more readable.
_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic