--- a/src/highlighter.c Sun Mar 02 16:06:24 2025 +0100 +++ b/src/highlighter.c Sun Mar 02 16:08:16 2025 +0100 @@ -518,15 +518,15 @@ if (check_keyword(word, jkeywords)) { cxBufferPutString(dest, "<span class=\"c2html-keyword\">"); + } else if (check_capsonly(word)) { + cxBufferPutString(dest, + "<span class=\"c2html-macroconst\">"); } else if (isupper(word.ptr[0])) { cxBufferPutString(dest, "<span class=\"c2html-type\">"); } else if (word.ptr[0] == '@') { cxBufferPutString(dest, "<span class=\"c2html-directive\">"); - } else if (check_capsonly(word)) { - cxBufferPutString(dest, - "<span class=\"c2html-macroconst\">"); } else { closespan = 0; }