diff options
author | Gaurav Jain <gaurav@gauravjain.org> | 2014-04-22 13:14:38 -0400 |
---|---|---|
committer | Gaurav Jain <gaurav@gauravjain.org> | 2014-04-22 13:14:38 -0400 |
commit | b6cffe501156257b85853cf27008d2a1a7cdbc81 (patch) | |
tree | fc3651771045deda599de6c14c858b245c05a364 /pygments/lexers/compiled.py | |
parent | ccec6938ff1ef582ee9b73c7cab7fafabf9981f8 (diff) | |
download | pygments-b6cffe501156257b85853cf27008d2a1a7cdbc81.tar.gz |
Include Name.Class when searching for builtins
When a class extends a class, the parent class could be a builtin so it needs to be scanned in get_tokens_unprocessed()
Diffstat (limited to 'pygments/lexers/compiled.py')
-rw-r--r-- | pygments/lexers/compiled.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/compiled.py b/pygments/lexers/compiled.py index 52d28736..dc4214d1 100644 --- a/pygments/lexers/compiled.py +++ b/pygments/lexers/compiled.py @@ -1480,7 +1480,7 @@ def objective(baselexer): for index, token, value in \ baselexer.get_tokens_unprocessed(self, text): - if token is Name: + if token is Name or token is Name.Class: if value in COCOA_INTERFACES or value in COCOA_PROTOCOLS \ or value in COCOA_PRIMITIVES: token = Name.Builtin.Pseudo |