Fix location for one error message
authorNick Downing <nick@ndcode.org>
Thu, 21 Dec 2023 07:51:00 +0000 (18:51 +1100)
committerNick Downing <nick@ndcode.org>
Thu, 21 Dec 2023 07:51:00 +0000 (18:51 +1100)
ndcode/piyacc/scan-gram.l

index ee7d75c..591b24c 100644 (file)
@@ -95,7 +95,7 @@ eqopt    ([[:space:]]*=)?
 <INITIAL,SC_AFTER_IDENTIFIER,SC_BRACKETED_ID,SC_RETURN_BRACKETED_ID>
 {
   /* Comments and white space.  */
-  ","                          state.complain(state.loc, state.Wother, 'stray \',\' treated as white space')
+  ","                          state.complain(y_tab.yylloc, state.Wother, 'stray \',\' treated as white space')
   [ \f\n\t\v]                  |
   "//".*                       #continue
   "/*" {