shithub: rgbds

Download patch

ref: 9e3d7a50e6a93152f60872dd03080c2c1942a97e
parent: e33c2ad6a2b5b04903c1ebbce5bed8f547898451
author: ISSOtm <[email protected]>
date: Tue Aug 18 12:37:01 EDT 2020

Handle comments in line continuations

--- a/src/asm/lexer.c
+++ b/src/asm/lexer.c
@@ -909,6 +909,8 @@
 			 || lexerState->expansions->distance)
 				lexerState->lineNo++;
 			return;
+		} else if (c == ';') {
+			discardComment();
 		} else {
 			error("Begun line continuation, but encountered character '%s'\n",
 			      print(c));