diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-12-16 20:36:04 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-12-16 20:36:04 +0000 |
commit | 0621550fe65012c5fd410a2361cc1ee3fabf5255 (patch) | |
tree | a4a29dff0a1a15d6cd95b42aad4c171c5d0e708d /perl_checker.src/lexer.mll | |
parent | 579939a2cf626dad1bc4f052d2a1e2b24de5171e (diff) | |
download | perl_checker-0621550fe65012c5fd410a2361cc1ee3fabf5255.tar perl_checker-0621550fe65012c5fd410a2361cc1ee3fabf5255.tar.gz perl_checker-0621550fe65012c5fd410a2361cc1ee3fabf5255.tar.bz2 perl_checker-0621550fe65012c5fd410a2361cc1ee3fabf5255.tar.xz perl_checker-0621550fe65012c5fd410a2361cc1ee3fabf5255.zip |
handle __END__
Diffstat (limited to 'perl_checker.src/lexer.mll')
-rw-r--r-- | perl_checker.src/lexer.mll | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/perl_checker.src/lexer.mll b/perl_checker.src/lexer.mll index 6b73073..981e245 100644 --- a/perl_checker.src/lexer.mll +++ b/perl_checker.src/lexer.mll @@ -719,6 +719,7 @@ rule token = parse | "qq(" { ins_to_string qqstring lexbuf } | "qw(" { let s, pos = raw_ins qstring lexbuf in QUOTEWORDS(s, pos) } +| "\n__END__" [^ '0'-'9' 'A'-'Z' 'a'-'z' '_'] | eof { EOF(pos lexbuf) } | _ { failwith (Printf.sprintf "%serror tokenizing <<%s>>" (pos2sfull lexbuf) (lexeme lexbuf)) } |