Topic: Search $(something) (1 of 3), Read 30 times
Conf: Search and Replace
From: Pauli Lindgren
Date: Monday, April 10, 2006 08:34 AM

I was trying to search for a string like $(objdir). Pattern matching codes were selected in search dialog (not regular expressions).
Vedit gave an error message "Bad parameter (objdir)".

I then found out that the syntax is used to find internal string variables, e.g. $(FILENAME) finds the name of current file.

According to Vedit help, the syntax for this is |(FILENAME). (However, this is not told in the help topics about searching, only in the topic "String Arguments".) But this syntax does not work any more!

The syntax $(FILENAME) is mentioned in regular expressions part of the help.

Has the syntax for pattern matching codes changed on version 6.15?

I think the syntax should be described in the pattern matching codes section, too.

--
Pauli

 


Topic: Re: Search $(something) (2 of 3), Read 29 times
Conf: Search and Replace
From: Ted Green
Date: Monday, April 10, 2006 11:07 AM

At 08:34 AM 4/10/2006, you wrote:
>The syntax $(FILENAME) is mentioned in regular expressions part of the help.
>Has the syntax for pattern matching codes changed on version 6.15?

I'll need to check this. :-O

I had Tom change the Search syntax to be more Perl-like, and then we forgot how far he got.

I will answer this in a day or two and update the doco if needed.

Ted.

 


Topic: Re: Search $(something) (3 of 3), Read 16 times
Conf: Search and Replace
From: Pauli Lindgren
Date: Monday, December 31, 2007 09:38 AM

On 4/10/2006 11:07:19 AM, Ted Green wrote:
>At 08:34 AM 4/10/2006, you wrote:
>>The syntax $(FILENAME) is mentioned in regular expressions part of the help.
>>Has the syntax for pattern matching codes changed on version 6.15?
>
>I'll need to check this. :-O
>
>I had Tom change the Search syntax to be more Perl-like,
>and then we forgot how far he got.
>
>I will answer this in a day or
>two and update the doco if needed.

Has this been fixed?

For example, if I want to replace "$(PS_ENV)" with "c:\foo\bar\ps_env" using Pattern Matching codes, Vedit gives error "Bad parameter".
(But when "Simple" option is selected, the replacement can be done.)

It causes another error, too.
If the above was the last search operation done before closing project, next time I try to open the project Vedit gives an error message "Bad parameter" for the following command in the .prj file:
SR_Set("$(PS_ENV)","dat",SET)

(I don't know where this "dat" came from, since that was not the replace string I had used.)

I think when pattern matching codes are used, '|' should be the only special character. So the system variables should be referred as |(variable} rather than $(variable). That is how it was on earlier versions.

--
Pauli