Mercurial > hg > index.cgi
comparison 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 |
comparison
equal
deleted
inserted
replaced
508:10f62dc61a75 | 509:bab891d85a53 |
---|---|
32 | 32 |
33 #include <version.h> | 33 #include <version.h> |
34 | 34 |
35 // these are allowed chars BELOW 0x80 for symbols | 35 // these are allowed chars BELOW 0x80 for symbols |
36 // first is symbol start chars, second is anywhere in symbol | 36 // first is symbol start chars, second is anywhere in symbol |
37 #define SSYMCHARS "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_@$" | 37 #define SSYMCHARS "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_@$." |
38 #define SYMCHARS SSYMCHARS ".?0123456789" | 38 #define SYMCHARS SSYMCHARS ".?0123456789" |
39 | 39 |
40 typedef struct asmstate_s asmstate_t; | 40 typedef struct asmstate_s asmstate_t; |
41 | 41 |
42 enum | 42 enum |