shithub: rgbds

Download patch

ref: 6d00877231196cd2c9f903f660613b3e61516c03
parent: 6755a0912b7b1d36c0f3fcfb7d6e0455773c8a68
author: ISSOtm <[email protected]>
date: Tue Feb 18 15:58:20 EST 2020

Prevent infinite loop with line continuations without newlines

--- a/src/asm/lexer.c
+++ b/src/asm/lexer.c
@@ -830,6 +830,7 @@
 					goto scanagain;
 				} else {
 					yyerror("Expected a new line after the continuation character.");
+					pLexBuffer++;
 				}
 			}
 		}