Page 1 of 1

Syntax file and s/\".*\"//g;

Posted: Mon Mar 18, 2002 9:46 pm
by Temelin
Greetings,

I am trying to strip all quotes from a file using:

s/\".*\"//g;

I currently have textpad setup to show strings in yellow and everything
else in white (black background). In the above command, Textpad thinks
the first \" starts a quote, which never ends. Right now I have this fixed
by doing:

s/\".*\"//g; # "

Is there anything to do to the syntax files to fix this? I have used all
of the syntax files available (perl2, perl3upd, and perl4).

Thanks!

Re: Syntax file and s/\".*\"//g;

Posted: Tue Mar 19, 2002 7:54 am
by Jens Hollmann
In my perl.syn file there is the entry

StringEsc = \

and this works just fine with your example. Maybe your SYN-file is different?