[PATCH for Dlang support] d: fix b4_rhs_location

Adela Vais <[email protected]>
Newsgroups gmane.comp.parsers.bison.patches
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.