assembler - Fix: Make preparse start counting lines at 1, so that they match the numbers in your text editor
This commit is contained in:
parent
621afa0553
commit
9268b2c59a
|
|
@ -78,7 +78,7 @@ function preparseSourceCode(source) {
|
||||||
return lines.map((line, index) => {
|
return lines.map((line, index) => {
|
||||||
dbg(1, ` ${line}`);
|
dbg(1, ` ${line}`);
|
||||||
let info = {
|
let info = {
|
||||||
number: index,
|
number: index + 1,
|
||||||
source: line,
|
source: line,
|
||||||
sanitized: stripWhitespaceFromEnds(stripComments(line)),
|
sanitized: stripWhitespaceFromEnds(stripComments(line)),
|
||||||
type: getLineType(line),
|
type: getLineType(line),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue