Return to parse.lex CVS log | Up to [local] / src / usr.bin / sudo |
version 1.1, 1999/11/18 16:29:01 | version 1.2, 1999/12/10 06:45:11 | ||
---|---|---|---|
|
|
||
#include "sudo.tab.h" | #include "sudo.tab.h" | ||
#ifndef lint | #ifndef lint | ||
static const char rcsid[] = "$Sudo: parse.lex,v 1.109 1999/11/09 20:06:52 millert Exp $"; | static const char rcsid[] = "$Sudo: parse.lex,v 1.110 1999/12/06 00:05:53 millert Exp $"; | ||
#endif /* lint */ | #endif /* lint */ | ||
#undef yywrap /* guard against a yywrap macro */ | #undef yywrap /* guard against a yywrap macro */ | ||
|
|
||
\n { | \n { | ||
++sudolineno; | ++sudolineno; | ||
LEXTRACE("\n"); | LEXTRACE("\n"); | ||
BEGIN INITIAL; | |||
return(COMMENT); | return(COMMENT); | ||
} /* return newline */ | } /* return newline */ | ||
|
|
||
} | } | ||
} | } | ||
<GOTDEFS>{WORD} { | <GOTDEFS>{WORD} { | ||
LEXTRACE("WORD(3) "); | LEXTRACE("WORD(3) "); | ||
fill(yytext, yyleng); | fill(yytext, yyleng); | ||
return(WORD); | return(WORD); | ||
|
|
||
} | } | ||
if (*yytext == 'R') { | if (*yytext == 'R') { | ||
LEXTRACE("RUNASALIAS "); | LEXTRACE("RUNASALIAS "); | ||
BEGIN GOTRUNAS; | |||
return(RUNASALIAS); | return(RUNASALIAS); | ||
} | } | ||
} | } |