src/codegens.c

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

mercurial