Perl: escaped characters not recognized after non-plain variables in double-quoted strings and regexes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GtkSourceView |
Expired
|
Medium
|
|||
gtksourceview2 (Ubuntu) |
Triaged
|
Low
|
Ubuntu Desktop Bugs |
Bug Description
Problem Description:
Using Perl syntax highlighting, escaped characters like \" and \n are not recognized after using a non-special variable in a double-quoted string. An example: $foo = "\"$1\""; this would put the first capture in a regex between double-quotes. In this example, the first \" is recognized as escaped, but the second is not, thus the double-quote mark after the backslash is treated as the end of the string, and gtksourceview renders the rest of the document as an unterminated string, which is incorrect. The same issue occurs in regular expressions where variables are interpolated.
Possible Reason:
It perhaps arises from the difference between a plain-variable and a special-variable in the perl.lang specification file, probably in the "in-pattern" context near line 177 of /usr/share/
Versions:
Ubuntu 8.04.1
gtksourceview 2.2.1-1
gedit 2.22.3-0ubuntu1
Changed in gtksourceview: | |
status: | Unknown → New |
Changed in gtksourceview2: | |
assignee: | nobody → desktop-bugs |
importance: | Undecided → Low |
status: | Confirmed → Triaged |
Changed in gtksourceview: | |
importance: | Unknown → Medium |
Changed in gtksourceview: | |
status: | New → Expired |
I'm sorry, this should be filed under the package gtksourceview2 instead.