diff lwasm/lwasm.h @ 509:bab891d85a53

Allow dot at start of symbol per documentation The documentation says symbols can start with a dot. Also, source code in the wild that uses symbols starting with a dot has turned up. In theory, it shouldn't cause any problems to have symbols starting with dots.
author William Astle <lost@l-w.ca>
date Sat, 16 May 2020 17:27:42 -0600
parents 7fbf3171ca15
children 724bcc4508bc
line wrap: on
line diff
--- a/lwasm/lwasm.h	Sun May 10 22:38:24 2020 -0600
+++ b/lwasm/lwasm.h	Sat May 16 17:27:42 2020 -0600
@@ -34,7 +34,7 @@
 
 // these are allowed chars BELOW 0x80 for symbols
 // first is symbol start chars, second is anywhere in symbol
-#define SSYMCHARS "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_@$"
+#define SSYMCHARS "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_@$."
 #define SYMCHARS SSYMCHARS ".?0123456789"
 
 typedef struct asmstate_s asmstate_t;