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

index c0c7d7b..edfbc0d 100644 (file)
@@ -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 */