Commits

Jimmy Zelinskie committed 0dbe8f0

Imaginary Number Literals for Go

  • Participants
  • Parent commits f2317ed

Comments (0)

Files changed (1)

File pygments/lexers/compiled.py

              r'|complex64|complex128|byte|rune'
              r'|string|bool|error|uintptr)\b', Keyword.Type
             ),
+            # imaginary_lit
+            (r'\d+i', Number),
+            (r'\d+\.\d*([Ee][-+]\d+)?i', Number),
+            (r'\.\d+([Ee][-+]\d+)?i', Number),
+            (r'\d+[Ee][-+]\d+i', Number),
             # float_lit
             (r'\d+(\.\d+[eE][+\-]?\d+|'
              r'\.\d*|[eE][+\-]?\d+)', Number.Float),