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
--- 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;
         }
     }
--- a/test/ctestfile.c	Wed Feb 10 12:45:14 2016 +0100
+++ b/test/ctestfile.c	Fri Mar 04 14:03:06 2016 +0100
@@ -47,6 +47,7 @@
 #include "crypto.h"
 #include "webdav.h"
 
+#define MACRO1337 1337L
 
 /* -------------------- This is a testing file. -------------------------- */
 /*

mercurial