Commits

Georg Brandl committed b300f15

Closes #790: The NameHighlightFilter now works with any Name.* token type.

  • Participants
  • Parent commits 94cff8d

Comments (0)

Files changed (2)

 
 - Haxe lexer: rewrite and support for Haxe 3 (PR#174).
 
+- The NameHighlightFilter now works with any Name.* token type (#790).
+
 
 Version 1.6
 -----------

File pygments/filters/__init__.py

 
 class NameHighlightFilter(Filter):
     """
-    Highlight a normal Name token with a different token type.
+    Highlight a normal Name (and Name.*) token with a different token type.
 
     Example::
 
 
     def filter(self, lexer, stream):
         for ttype, value in stream:
-            if ttype is Name and value in self.names:
+            if ttype in Name and value in self.names:
                 yield self.tokentype, value
             else:
                 yield ttype, value