1. Eric Knibbe
  2. pygments-main

Commits

Georg Brandl  committed 7f34cd9

Closes #916: remove strange "case" special case that leads to problems

  • Participants
  • Parent commits 74c6076
  • Branches default

Comments (0)

Files changed (1)

File pygments/lexers/compiled.py

View file
     #: optional Comment or Whitespace
     _ws = r'(?:\s|//.*?\n|/[*].*?[*]/)+'
     #: only one /* */ style comment
-    _ws1 = r':\s*/[*].*?[*]/\s*'
+    _ws1 = r'\s*/[*].*?[*]/\s*'
 
     tokens = {
         'whitespace': [
             (r'\*/', Error),
             (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|while)\b', Keyword),