Daniele Varrazzo  committed e46ca1c

Look for datatypes before the keywords

Some datatypes are keywords, some are not. Showing the former as keywords
makes a messy result.

  • Participants
  • Parent commits 903a052
  • Branches default

Comments (0)

Files changed (1)

File pygments/lexers/

             (r'\s+', Text),
             (r'--.*?\n', Comment.Single),
             (r'/\*', Comment.Multiline, 'multiline-comments'),
-            (r'(' + '|'.join(KEYWORDS) + r')\b', Keyword),
             (r'(' + '|'.join([s.replace(" ", "\s+") for s in DATATYPES])
                   + r')\b', Name.Builtin),
+            (r'(' + '|'.join(KEYWORDS) + r')\b', Keyword),
             (r'[+*/<>=~!@#%^&|`?^-]', Operator),
             (r'::', Operator),  # cast
             (r'([0-9]*\.[0-9]*|[0-9]+)(e[+-]?[0-9]+)?', Number.Float),