Only link Token.Name.Class

This commit is contained in:
str4d
2014-02-14 01:27:40 +00:00
parent 04fd682136
commit 7eda69e8aa

View File

@ -713,7 +713,7 @@ class I2PHtmlFormatter(Formatter):
parts = value.translate(escape_table).split('\n')
if tagsfile and ttype in Token.Name:
if tagsfile and ttype in Token.Name.Class:
filename, kind = self._lookup_ctag(value)
if kind:
base, filename = os.path.split(filename)