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

Allow comments at end of @if ... then do lines

This likely breaks things nobody does.
parent deb14008
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #1460 passed
......@@ -1114,7 +1114,8 @@ y }
var tmp;
// TODO: This implies that the line "@do" will execute the next line... but this is used for @if parsing... also, this will choke on comments.
if (args.length < 1 || args.length == 1 && args[0].toLowerCase() === 'do') {
// TODO: I likely just broke @do do XXX, hopefully nobody notices until I rewrite this.
if (args.length < 1 || args[0].toLowerCase() === 'do') {
if (line + 1 >= files[fname].lines.length)
throw new Error('do at end of file');
// Trailing do is not fatal... see jump.ref:21 in cnw
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment