diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-09-25 14:06:45 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-09-25 14:06:45 +0000 |
commit | ff7097e6f7fd397ba39a2fd032f48516d31b0ce8 (patch) | |
tree | 8876573ee066019a1c206773f16913eeed44b0ab /src | |
parent | 0eb228745889527fe11f8457ebaae1ad86a5d0d0 (diff) | |
download | perl_checker-ff7097e6f7fd397ba39a2fd032f48516d31b0ce8.tar perl_checker-ff7097e6f7fd397ba39a2fd032f48516d31b0ce8.tar.gz perl_checker-ff7097e6f7fd397ba39a2fd032f48516d31b0ce8.tar.bz2 perl_checker-ff7097e6f7fd397ba39a2fd032f48516d31b0ce8.tar.xz perl_checker-ff7097e6f7fd397ba39a2fd032f48516d31b0ce8.zip |
- re-allow "$object->state" and "sub state ..."
Diffstat (limited to 'src')
-rw-r--r-- | src/parser.mly | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parser.mly b/src/parser.mly index dd36707..62309be 100644 --- a/src/parser.mly +++ b/src/parser.mly @@ -181,6 +181,7 @@ use_revision: func_decl: | SUB word { new_esp M_none ($2.any, None) $1 $2} +| SUB MY_OUR { new_esp M_none (Ident(None, $2.any, get_pos $2), None) $1 $2} | SUB ONE_SCALAR_PARA { new_esp M_none (Ident(None, $2.any, get_pos $2), None) $1 $2} | SUB BAREWORD_PAREN PAREN PAREN_END { warn_rule [Warn_white_space] "remove carriage return between \"sub\" and the function name"; new_esp M_none (Ident(None, $2.any, get_pos $2), Some "") $1 $4 } | FUNC_DECL_WITH_PROTO {new_1esp (Ident(fst3 $1.any, snd3 $1.any, get_pos $1), Some (ter3 $1.any)) $1 } |