pam_conv_l.l 569 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. %{
  2. /*
  3. * $Id$
  4. *
  5. * Copyright (c) Andrew G. Morgan 1997 <morgan@parc.power.net>
  6. *
  7. * This file is covered by the Linux-PAM License (which should be
  8. * distributed with this file.)
  9. */
  10. #ifdef HAVE_CONFIG_H
  11. # include <config.h>
  12. #endif
  13. #include <stdio.h>
  14. #include "pam_conv_y.h"
  15. extern int current_line;
  16. %}
  17. %option noyywrap
  18. %%
  19. "#"[^\n]* ; /* skip comments (sorry) */
  20. "\\\n" {
  21. ++current_line;
  22. }
  23. ([^\n\t ]|[\\][^\n])+ {
  24. return TOK;
  25. }
  26. [ \t]+ ; /* Ignore */
  27. <<EOF>> {
  28. return EOFILE;
  29. }
  30. [\n] {
  31. ++current_line;
  32. return NL;
  33. }
  34. %%