Skip to content
Snippets Groups Projects
Commit 88676bdc authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Fix end of file check.

parent e33a648e
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -255,7 +255,7 @@ function insane_run_ref(sec, fname) ...@@ -255,7 +255,7 @@ function insane_run_ref(sec, fname)
function getlines() { function getlines() {
var ret = []; var ret = [];
while (line < files[fname].lines.length && files[fname].lines[line+1].search(/^\s*@/) === -1) { while (line < (files[fname].lines.length - 1) && files[fname].lines[line+1].search(/^\s*@/) === -1) {
// NOTE: "Comments" are not special in any way (see top of loop in main body of insane_run_ref() // NOTE: "Comments" are not special in any way (see top of loop in main body of insane_run_ref()
//if (files[fname].lines[line+1].search(/^\s*;/) === -1) //if (files[fname].lines[line+1].search(/^\s*;/) === -1)
ret.push(files[fname].lines[line+1]); ret.push(files[fname].lines[line+1]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment