hgext/highlight/highlight.py
changeset 35329 169d66db5920
parent 32908 661025fd3e1c
child 37084 f0b6fbea00cf
--- a/hgext/highlight/highlight.py	Fri Dec 08 17:20:11 2017 +0900
+++ b/hgext/highlight/highlight.py	Fri Dec 08 16:14:19 2017 -0500
@@ -22,8 +22,12 @@
     import pygments
     import pygments.formatters
     import pygments.lexers
+    import pygments.plugin
     import pygments.util
 
+    for unused in pygments.plugin.find_plugin_lexers():
+        pass
+
 highlight = pygments.highlight
 ClassNotFound = pygments.util.ClassNotFound
 guess_lexer = pygments.lexers.guess_lexer