aboutsummaryrefslogtreecommitdiffstats
path: root/rcfile_y.y
diff options
context:
space:
mode:
Diffstat (limited to 'rcfile_y.y')
-rw-r--r--rcfile_y.y4
1 files changed, 4 insertions, 0 deletions
diff --git a/rcfile_y.y b/rcfile_y.y
index 5e8a470b..16a4f25b 100644
--- a/rcfile_y.y
+++ b/rcfile_y.y
@@ -89,6 +89,10 @@ statement : SET LOGFILE MAP STRING {logfile = xstrdup($4);}
*/
| define_server serverspecs {record_current();}
| define_server serverspecs userspecs
+
+/* detect and complain about the most common user error */
+ | define_server serverspecs userspecs serv_option
+ {yyerror("server option after user options");}
;
define_server : POLL STRING {reset_server($2, FALSE);}