index 46141f7ddac584c24368f2e8e2cef5e6c8d80374..8439c865bfe401a82fb7fa93db7e4708d51a0cd0 100644 (file)
escape_variable(true);
}
+ /*
+ * These rules just avoid the need for scanner backup if one of the
+ * two rules above fails to match completely.
+ */
+
+:'[A-Za-z0-9_]* {
+ /* Throw back everything but the colon */
+ yyless(1);
+ ECHO;
+ }
+
+:\"[A-Za-z0-9_]* {
+ /* Throw back everything but the colon */
+ yyless(1);
+ ECHO;
+ }
+
/*
* Back to backend-compatible rules.
*/
}
}
-:[A-Za-z0-9_]* {
+:[A-Za-z0-9_]+ {
/* Possible psql variable substitution */
if (option_type == OT_VERBATIM)
ECHO;
}
}
+:'[A-Za-z0-9_]* {
+ /* Throw back everything but the colon */
+ yyless(1);
+ ECHO;
+ BEGIN(xslashdefaultarg);
+ }
+
+:\"[A-Za-z0-9_]* {
+ /* Throw back everything but the colon */
+ yyless(1);
+ ECHO;
+ BEGIN(xslashdefaultarg);
+ }
+
"|" {
ECHO;
if (option_type == OT_FILEPIPE)