Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

commit: collect any sub-types of Token.Name for completion

According to the Pygments' doc, there are some sub-types of Name token:
http://pygments.org/docs/tokens/#name-tokens

Changeset ffe7c3992286

Parent 4c5c0022ccd5

by Yuya Nishihara

Changes to one file · Browse files at ffe7c3992286 Showing diff from parent 4c5c0022ccd5 Diff from another changeset...

 
190
191
192
193
 
194
195
196
 
190
191
192
 
193
194
195
196
@@ -190,7 +190,7 @@
  contents = unicode(contents)   lexer = guess_lexer_for_filename(wfile, contents)   for tokentype, value in lexer.get_tokens(contents): - if tokentype is Token.Name and len(value) > 4: + if tokentype in Token.Name and len(value) > 4:   tokens.add(value)   except ClassNotFound:   pass