summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-09-25 14:06:45 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-09-25 14:06:45 +0000
commit54a90a34a7d415dff1e4223e44ac7d7fa706f0bf (patch)
tree8876573ee066019a1c206773f16913eeed44b0ab
parent7a8ee73958d286f277736821f996fb9b83673f3f (diff)
downloadperl_checker-54a90a34a7d415dff1e4223e44ac7d7fa706f0bf.tar
perl_checker-54a90a34a7d415dff1e4223e44ac7d7fa706f0bf.tar.gz
perl_checker-54a90a34a7d415dff1e4223e44ac7d7fa706f0bf.tar.bz2
perl_checker-54a90a34a7d415dff1e4223e44ac7d7fa706f0bf.tar.xz
perl_checker-54a90a34a7d415dff1e4223e44ac7d7fa706f0bf.zip
- re-allow "$object->state" and "sub state ..."
-rw-r--r--NEWS2
-rw-r--r--src/parser.mly1
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index eec3e27..67ec2ea 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,4 @@
-- re-allow $object->state
+- re-allow "$object->state" and "sub state ..."
- ignore "use feature"
Version 1.2.10 - 25 September 2008, by Pascal "Pixel" Rigaux
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 }