shithub: rgbds

Download patch

ref: 23721694ea711eabdc96285c099bbe7afb90bbe8
parent: aa02958e18396e23334f48bfdff4fe196c9c5e66
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Sat May 15 08:57:22 EDT 2021

Comment that anonymous labels internally start with '!'

`startsIdentifier` should not accept this character so
anonymous labels won't conflict with nonymous ones.

--- a/src/asm/lexer.c
+++ b/src/asm/lexer.c
@@ -1307,6 +1307,7 @@
 
 static bool startsIdentifier(int c)
 {
+	// Anonymous labels internally start with '!'
 	return (c <= 'Z' && c >= 'A') || (c <= 'z' && c >= 'a') || c == '.' || c == '_';
 }