Commits

Anonymous committed 9db0586

Fix 2.3 compatibility.

Comments (0)

Files changed (1)

pygments/lexers/other.py

 
 def _shortened(word):
     dpos = word.find('$')
-    return '|'.join(word[:dpos] + word[dpos+1:i] + r'\b'
-                    for i in range(len(word), dpos, -1))
+    return '|'.join([word[:dpos] + word[dpos+1:i] + r'\b'
+                     for i in range(len(word), dpos, -1)])
 def _shortened_many(*words):
     return '|'.join(map(_shortened, words))