summaryrefslogtreecommitdiffstats
path: root/contrib/libpam/conf/pam_conv1/pam_conv.lex
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libpam/conf/pam_conv1/pam_conv.lex')
-rw-r--r--contrib/libpam/conf/pam_conv1/pam_conv.lex42
1 files changed, 42 insertions, 0 deletions
diff --git a/contrib/libpam/conf/pam_conv1/pam_conv.lex b/contrib/libpam/conf/pam_conv1/pam_conv.lex
new file mode 100644
index 0000000..d5f618e
--- /dev/null
+++ b/contrib/libpam/conf/pam_conv1/pam_conv.lex
@@ -0,0 +1,42 @@
+
+%{
+/*
+ * $Id: pam_conv.lex,v 1.1 1997/01/23 05:35:50 morgan Exp $
+ *
+ * Copyright (c) Andrew G. Morgan 1997 <morgan@parc.power.net>
+ *
+ * This file is covered by the Linux-PAM License (which should be
+ * distributed with this file.)
+ */
+
+ const static char lexid[]=
+ "$Id: pam_conv.lex,v 1.1 1997/01/23 05:35:50 morgan Exp $\n"
+ "Copyright (c) Andrew G. Morgan 1997 <morgan@parc.power.net>\n";
+
+ extern int current_line;
+%}
+
+%%
+
+"#"[^\n]* ; /* skip comments (sorry) */
+
+"\\\n" {
+ ++current_line;
+}
+
+([^\n\t ]|[\\][^\n])+ {
+ return TOK;
+}
+
+[ \t]+ ; /* Ignore */
+
+<<EOF>> {
+ return EOFILE;
+}
+
+[\n] {
+ ++current_line;
+ return NL;
+}
+
+%%
OpenPOWER on IntegriCloud