We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2695eea commit f81b6c2Copy full SHA for f81b6c2
src/HLL/Compiler.pm
@@ -660,6 +660,8 @@ class HLL::Compiler {
660
inc line
661
goto line_loop
662
line_done:
663
+ # line numbers are generall 1-based
664
+ inc line
665
.return (line)
666
};
667
}
src/HLL/Grammar.pm
@@ -318,7 +318,7 @@ of the match.
318
my $pos := self.pos();
319
my $target := pir::getattribute__PPPs(self, Regex::Cursor, '$!target');
320
@args.push(' at line ');
321
- @args.push(HLL::Compiler.lineof($target, $pos) + 1);
+ @args.push(HLL::Compiler.lineof($target, $pos));
322
@args.push(', near "');
323
@args.push(pir::escape__SS(pir::substr($target, $pos, 10)));
324
@args.push('"');
0 commit comments