"unsigned" keyword for C\C++ is missing

Issue #83 wontfix
Martina Riedel created an issue

With C\C++ syntax "unsigned" is not recognized as a key word and not colored. See attachment, the yellow highlighted code is expected to be colored just like signed in the line above.

unsigned.jpg

Here is the snippet for that screen shot:

{code:c++}
typedef signed char int8;

typedef unsigned char uint8;
typedef unsigned short uint16;
typedef unsigned long uint32;
{code}

Comments (6)

  1. M Limber

    There are more keywords that don't get highlighted properly, e.g., auto.

    All of the keywords can be found here. Some are tricky like override, which are contextual keywords (i.e., they act as keywords only in certain spots and can otherwise be variable names, etc.), and like co_return, which is part of a Technical Specification (TS).

    The easiest path would probably be to always highlight contextual keywords and then either to add all the others or add only the ones up through C++17 and ignore TSes for now.

  2. Holger Schimanski repo owner

    Since Jira 7.5 there is an improved syntax highlighter part of Jira. Please check there. I no longer work on my Jira Syntax Highlighter because of this new functionality in Jira 7.5.

  3. Log in to comment