[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH for Dlang support] d: fix b4_rhs_location
From: |
Adela Vais |
Subject: |
[PATCH for Dlang support] d: fix b4_rhs_location |
Date: |
Mon, 14 Sep 2020 21:12:31 +0300 |
It was calling yystack.locationAt() with two parameters instead of one.
* data/skeletons/d.m4: Fix.
---
data/skeletons/d.m4 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/data/skeletons/d.m4 b/data/skeletons/d.m4
index 7a9d3efe..f0bcb99b 100644
--- a/data/skeletons/d.m4
+++ b/data/skeletons/d.m4
@@ -345,7 +345,7 @@ m4_define([b4_lhs_location],
# Expansion of @POS, where the current rule has RULE-LENGTH symbols
# on RHS.
m4_define([b4_rhs_location],
-[yystack.locationAt ([$1], [$2])])
+[yystack.locationAt (([$1]) - ([$2]))])
# b4_lex_param
--
2.17.1
- [PATCH for Dlang support] d: fix b4_rhs_location,
Adela Vais <=