1. Georg Brandl
  2. pygments-main


Gaurav Jain  committed 89ecee7

Fixed typo in Carbon built-in regex

Carbon builtin should not be prefixed with an @. Also changed the the \n to \b

  • Participants
  • Parent commits 23d0b16
  • Branches default

Comments (0)

Files changed (1)

File pygments/lexers/compiled.py

View file
  • Ignore whitespace
                 # Carbon types
                 (r'(Boolean|UInt8|SInt8|UInt16|SInt16|UInt32|SInt32)\b', Keyword.Type),
                 # Carbon built-ins
-                (r'@(TRUE|FALSE)\n', Name.Builtin),
+                (r'(TRUE|FALSE)\b', Name.Builtin),
                 (r'(@interface|@implementation)(\s+)', bygroups(Keyword, Text),
                  ('#pop', 'oc_classname')),
                 (r'(@class|@protocol)(\s+)', bygroups(Keyword, Text),