projects
/
p5sagit/Devel-Declare.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
09ca664
)
Don't invoke linestr callback if the parser is expecting an operator. This makes...
Florian Ragwitz [Sun, 10 May 2009 00:01:49 +0000 (
00:01
+0000)]
Declare.xs
patch
|
blob
|
blame
|
history
diff --git
a/Declare.xs
b/Declare.xs
index
c0c7d7b
..
edfbc0d
100644
(file)
--- a/
Declare.xs
+++ b/
Declare.xs
@@
-330,6
+330,10
@@
STATIC OP *dd_ck_const(pTHX_ OP *o, void *user_data) {
PERL_UNUSED_VAR(user_data);
+ if (DD_HAVE_PARSER && PL_expect == XOPERATOR) {
+ return o;
+ }
+
/* if this is set, we just grabbed a delimited string or something,
not a bareword, so NO TOUCHY */