src/codegens.c

changeset 33
d7b475e4363c
parent 24
e43dee5892f4
child 35
abaf2489c549
--- a/src/codegens.c	Wed Feb 10 12:45:14 2016 +0100
+++ b/src/codegens.c	Fri Mar 04 14:03:06 2016 +0100
@@ -55,7 +55,7 @@
 
 int iscapsonly(char *word, size_t wp) {
     for (size_t i = 0 ; i < wp ; i++) {
-        if (!isupper(word[i]) && word[i] != '_') {
+        if (!isupper(word[i]) && !isdigit(word[i]) && word[i] != '_') {
             return 0;
         }
     }

mercurial