Bruce,

On 7/15/05 9:59 PM, "Bruce Momjian" <pgman@candle.pha.pa.us> wrote:

> Actually, mine returns ')' too for the last command.   I didn't copy
> that into the email.  How about the top tests?  Notice I get an error on
> the first one without the backslash.  Are you OK escaping '(' but not
> ')'?  That might be a solution.

You know, I'm not sure - I don't know the intended meaning of this line:

    awk '   BEGIN   {line1 = ""; line2 = ""}
        {
            line2 = $0;
            if (NR >= 2)
                print line1;
            if (NR >= 2 &&
                line2 ~ "^{[    ]*$" &&
                line1 !~ "^struct" &&
                line1 !~ "^enum" &&
                line1 !~ "^typedef" &&
                line1 !~ "^extern[  ][  ]*\"C\"" &&
                line1 !~ "=" &&
=====>          line1 ~ "\)")
                print "int  pgindent_func_no_var_fix;";
            line1 = line2;
        }
        END

Is the escaped paren within "" meant to be a literal?

- Luke



---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

               http://www.postgresql.org/docs/faq

Reply via email to