shithub: rgbds

Download patch

ref: a034ce04786b627ab1c6b6f485b19355ab58f779
parent: d6cd5823e3053bbcf356715e3a4933aa6f94c6f0
author: ISSOtm <[email protected]>
date: Thu Apr 9 13:55:01 EDT 2020

Deprecate '*' for comments

--- a/src/asm/lexer.c
+++ b/src/asm/lexer.c
@@ -342,6 +342,7 @@
 					*mem++ = ' ';
 			/* Comments that start with * at the start of a line */
 			} else if ((mem[0] == '\n') && (mem[1] == '*')) {
+				warning(WARNING_OBSOLETE, "'*' is deprecated for comments, please use ';' instead");
 				mem++;
 				while (!((*mem == '\n') || (*mem == '\0')))
 					*mem++ = ' ';