# HG changeset patch # User William Astle # Date 1589671662 21600 # Node ID bab891d85a53e9d41723a9943d12eee56baff5b3 # Parent 10f62dc61a75b73f160c1823af1266077064122f 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. diff -r 10f62dc61a75 -r bab891d85a53 lwasm/lwasm.h --- 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;