aboutsummaryrefslogtreecommitdiffstats
path: root/rcfile_l.l
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-09-29 15:10:22 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-09-29 15:10:22 +0000
commitd7f9a56364a7457d662dc0e2a2eaf0075e3d3fbe (patch)
treedfae0c000c564f67697c89f5d253cdfbe01f773b /rcfile_l.l
parentb1ee6be33d46826e60353a368850cfe098e4826e (diff)
downloadfetchmail-d7f9a56364a7457d662dc0e2a2eaf0075e3d3fbe.tar.gz
fetchmail-d7f9a56364a7457d662dc0e2a2eaf0075e3d3fbe.tar.bz2
fetchmail-d7f9a56364a7457d662dc0e2a2eaf0075e3d3fbe.zip
Make newline escapes optional. JEEP_IS_DEFAULT is gone. Lots of
other man page improvements. svn path=/trunk/; revision=181
Diffstat (limited to 'rcfile_l.l')
-rw-r--r--rcfile_l.l17
1 files changed, 7 insertions, 10 deletions
diff --git a/rcfile_l.l b/rcfile_l.l
index d54e2bb7..5cfdc081 100644
--- a/rcfile_l.l
+++ b/rcfile_l.l
@@ -21,7 +21,6 @@
int prc_lineno = 1;
%}
-
%%
defaults { return KW_DEFAULTS; }
@@ -43,16 +42,14 @@ norewrite { yylval.flag = FALSE; return KW_REWRITE; }
noskip { yylval.flag = FALSE; return KW_SKIP; }
port { return KW_PORT; }
-(auto)|(AUTO) { yylval.proto = P_AUTO; return PROTO_AUTO; }
-(pop2)|(POP2) { yylval.proto = P_POP2; return PROTO_POP2; }
-(pop3)|(POP3) { yylval.proto = P_POP3; return PROTO_POP3; }
-(imap)|(IMAP) { yylval.proto = P_IMAP; return PROTO_IMAP; }
-(apop)|(APOP) { yylval.proto = P_APOP; return PROTO_APOP; }
-(rpop)|(RPOP) { yylval.proto = P_RPOP; return PROTO_RPOP; }
-
-(#.*)?\\\n { prc_lineno++; } /* escaped newline is ignored */
+(auto)|(AUTO) { yylval.proto = P_AUTO; return KW_PROTO; }
+(pop2)|(POP2) { yylval.proto = P_POP2; return KW_PROTO; }
+(pop3)|(POP3) { yylval.proto = P_POP3; return KW_PROTO; }
+(imap)|(IMAP) { yylval.proto = P_IMAP; return KW_PROTO; }
+(apop)|(APOP) { yylval.proto = P_APOP; return KW_PROTO; }
+(rpop)|(RPOP) { yylval.proto = P_RPOP; return KW_PROTO; }
-(#.*)?\n { prc_lineno++; return KW_EOL; }
+(#.*)?\\?\n { prc_lineno++; } /* newline is ignored */
\"[^\"]*\" {
yytext[strlen(yytext)-1] = '\0';