#55 Double Quote in s/././ causes infinite string

v0.1.0
closed
nobody
Editor (234)
5
2005-01-25
2004-04-28
Anonymous
No

In the editor for Perl under Eclipse
Trying to eliminate the double quote (") from the data

$InPutRecord =~ s/\"+//g;

causes following line(s) to be displayed as if they were
a part of a double quoted string.

This code has been in production for a long time.

I am attempting to use:
my $DoubleQuote = "\""
$InPutRecord =~ s/$DoubleQuote+//g;
I do not know that this will work or not.

Discussion

  • Rey Hernandez

    Rey Hernandez - 2004-08-20

    Logged In: YES
    user_id=967523

    This also happens with single quotes. For example:

    $string =~ s/'/''/g;

    Ends up coloring the following lines as a string until it
    finds another single quote. This is a drag, I end up doing
    this a lot:

    $string =~ s/'/''/g; # ' and some comment about it

    Thanks for the great plugin!

     
  • LeO

    LeO - 2004-09-29

    Logged In: YES
    user_id=703323

    At least we can provide for this issue a patch which treats
    \" resp. \' in a better way.

    The implentation of s/// seems quite difficult resp. tricky.
    => will take some more time to solve this issue.

     
  • mr. wobbet

    mr. wobbet - 2004-09-29

    Logged In: YES
    user_id=178785

    Me Too! ;)

    This occurs for any escaped quote (single or double) within
    the s/././ expression

     
  • khiraly

    khiraly - 2004-10-05

    Logged In: YES
    user_id=1094989

    Similar case is the following:
    Consider the following code:

    $url =~ s/\'//;
    $url =~ s/\"//;
    my $pageData;
    blabla

    The syntax highlighting does not work after the first
    line($url =~ s/\'//;).

    Cheers,
    Khiraly

     
  • Andre

    Andre - 2005-01-06

    Logged In: YES
    user_id=1191439

    A temporary 'get around' is to terminate the line with a
    comment such as

    #'

    if you are using \'

    I assume #" will do the same but haven't investigated.

     
  • LeO

    LeO - 2005-01-25

    Logged In: YES
    user_id=703323

    Fixed in new release

     
  • LeO

    LeO - 2005-01-25
    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks