thatch  committed 7206444

Minor tweaks to vim lexer

  • Participants
  • Parent commits 59849a1
  • Branches trunk

Comments (0)

Files changed (2)

     C99 types.
   * Bash lexer now correctly highlights heredocs without preceeding
+  * Vim lexer now highlights hex colors properly and knows a couple more
+    keywords.
 - Added "Visual Studio" style.
 - Updated markdown processor to Markdown 1.7.

File pygments/lexers/

             (r'"(\\\\|\\"|[^\n"])*"', String.Double),
             (r"'(\\\\|\\'|[^\n'])*'", String.Single),
             (r'-?\d+', Number),
+            (r'#[0-9a-f]{6}', Number.Hex),
             (r'^:', Punctuation),
             (r'[()<>+=!|,~-]', Punctuation), # Inexact list.  Looks decent.
+            (r'\b(NONE|bold|italic|underline|dark|light)\b', Name.Builtin),
             (r'\b\w+\b', Name.Other), # These are postprocessed below
             (r'.', Text),