summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gen-s-parser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gen-s-parser.py b/scripts/gen-s-parser.py
index 0874d3218..689c30ae1 100755
--- a/scripts/gen-s-parser.py
+++ b/scripts/gen-s-parser.py
@@ -767,7 +767,7 @@ def instruction_parser(new_parser=False):
printer.print_line("parse_error:")
with printer.indent():
if new_parser:
- printer.print_line("return ctx.in.err(\"unrecognized instruction\");")
+ printer.print_line("return ctx.in.err(pos, \"unrecognized instruction\");")
else:
printer.print_line("throw ParseException(std::string(op), s.line, s.col);")