Commits

Tim Hatch committed b07bba9 Merge

Comments (0)

Files changed (2)

pygments/lexers/compiled.py

              bygroups(using(this), Comment.Preproc), 'if0'),
             ('^(' + _ws1 + ')(#)',
              bygroups(using(this), Comment.Preproc), 'macro'),
-            (r'^(\s*)([a-zA-Z_][a-zA-Z0-9_]*:(?!:))',
-             bygroups(Text, Name.Label)),
+            (r'^(\s*)([a-zA-Z_][a-zA-Z0-9_]*)(\s*:)(?!:)',
+             bygroups(Text, Name.Label, Text)),
             (r'\n', Text),
             (r'\s+', Text),
             (r'\\\n', Text), # line continuation

tests/examplefiles/example.c

 		case TYPE_INT:     return 'I';
 		case TYPE_FLOAT:   return 'F';
 		case TYPE_BOOLEAN: return 'Z';
-		default: yyerror("compiler-intern error in convertType().\n");
+		default : yyerror("compiler-intern error in convertType().\n");
 	}
 	return 0; /* to avoid compiler-warning */
 }