aboutsummaryrefslogtreecommitdiffstats
path: root/yarp
diff options
context:
space:
mode:
Diffstat (limited to 'yarp')
-rw-r--r--yarp/yarp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/yarp/yarp.c b/yarp/yarp.c
index 75150ff0bd..643f795c74 100644
--- a/yarp/yarp.c
+++ b/yarp/yarp.c
@@ -8169,6 +8169,7 @@ parse_target(yp_parser_t *parser, yp_node_t *target) {
// If we have no arguments to the call node and we need this to be a
// target then this is either a method call or a local variable write.
if (
+ ((call->message_loc.start != NULL) && (call->message_loc.end[-1] != '!') && (call->message_loc.end[-1] != '?')) &&
(call->opening_loc.start == NULL) &&
(call->arguments == NULL) &&
(call->block == NULL)