Commits

gbrandl  committed f292b65

Highlight case labels somewhat better.

  • Participants
  • Parent commits 2f15a85
  • Branches trunk

Comments (0)

Files changed (3)

 - Bash lexer now correctly highlights math, does not require whitespace
   after semicolons, and correctly highlights boolean operators.
 
-- Makefile lexer is now capable of handling BSD and GNU make syntax
+- Makefile lexer is now capable of handling BSD and GNU make syntax.
 
 
 Version 0.9

File pygments/lexers/compiled.py

             (r'\d+[Ll]?', Number.Integer),
             (r'[~!%^&*+=|?:<>/-]', Operator),
             (r'[()\[\],.]', Punctuation),
+            (r'\b(case)(.+?)(:)', bygroups(Keyword, using(this), Text)),
             (r'(auto|break|case|const|continue|default|do|else|enum|extern|'
              r'for|goto|if|register|restricted|return|sizeof|static|struct|'
              r'switch|typedef|union|volatile|virtual|while)\b', Keyword),

File pygments/lexers/text.py

     Lexer for BSD and GNU make extensions (lenient enough to handle both in
     the same file even).
 
-    *Rewritten in Pygments 1.0*
+    *Rewritten in Pygments 1.0.*
     """
 
     name = 'Makefile'
     """
     Lexer for simple Makefiles (no preprocessing).
 
-    *New in Pygments 1.0*
+    *New in Pygments 1.0.*
     """
 
     name = 'Makefile'