fixed macros with digits not highlighted

Fri, 04 Mar 2016 14:03:06 +0100

author
Mike Becker <universe@uap-core.de>
date
Fri, 04 Mar 2016 14:03:06 +0100
changeset 33
d7b475e4363c
parent 32
10389d866a4d
child 34
64987723f0f7

fixed macros with digits not highlighted

src/codegens.c file | annotate | diff | comparison | revisions
test/ctestfile.c file | annotate | diff | comparison | revisions
     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      }
     2.1 --- a/test/ctestfile.c	Wed Feb 10 12:45:14 2016 +0100
     2.2 +++ b/test/ctestfile.c	Fri Mar 04 14:03:06 2016 +0100
     2.3 @@ -47,6 +47,7 @@
     2.4  #include "crypto.h"
     2.5  #include "webdav.h"
     2.6  
     2.7 +#define MACRO1337 1337L
     2.8  
     2.9  /* -------------------- This is a testing file. -------------------------- */
    2.10  /*

mercurial