summaryrefslogtreecommitdiffstats
path: root/perl_checker.src/lexer.mll
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-11-26 00:37:30 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-11-26 00:37:30 +0000
commit431db26a9d138a21e17caf3affe5d2131387b69f (patch)
tree6167bde89153ce58517239d8f974b7171f89913a /perl_checker.src/lexer.mll
parent0a3eca317134e14282153c851f0dcdc6a8a54282 (diff)
downloadperl-MDK-Common-431db26a9d138a21e17caf3affe5d2131387b69f.tar
perl-MDK-Common-431db26a9d138a21e17caf3affe5d2131387b69f.tar.gz
perl-MDK-Common-431db26a9d138a21e17caf3affe5d2131387b69f.tar.bz2
perl-MDK-Common-431db26a9d138a21e17caf3affe5d2131387b69f.tar.xz
perl-MDK-Common-431db26a9d138a21e17caf3affe5d2131387b69f.zip
*** empty log message ***
Diffstat (limited to 'perl_checker.src/lexer.mll')
-rw-r--r--perl_checker.src/lexer.mll4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl_checker.src/lexer.mll b/perl_checker.src/lexer.mll
index bf344a4..cfd7af9 100644
--- a/perl_checker.src/lexer.mll
+++ b/perl_checker.src/lexer.mll
@@ -418,11 +418,11 @@ rule token = parse
| "split"
| "grep" { (* ok_for_match! *) BAREWORD(lexeme lexbuf, pos lexbuf) }
-| "print " ['A'-'Z'] ['A'-'Z' '0'-'9']* ' ' {
+| "print " ['A'-'Z'] ['A'-'Z' '0'-'9']* ['\n' ' '] {
putback lexbuf 1;
PRINT_TO_STAR(skip_n_char 6 (lexeme lexbuf), pos lexbuf)
}
-| "print $" ident ' ' {
+| "print $" ident ['\n' ' '] {
putback lexbuf 1;
PRINT_TO_SCALAR(skip_n_char 7 (lexeme lexbuf), pos lexbuf);
}