summaryrefslogtreecommitdiff
path: root/scripts/debug_lexer.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2016-02-14 15:15:04 +0100
committerGeorg Brandl <georg@python.org>2016-02-14 15:15:04 +0100
commitbe71a37c4b860a5247cf7f65ea8f3596cef11e9e (patch)
tree518bfd491c44e50b9298ea5948a460e584afe6d5 /scripts/debug_lexer.py
parent1b8de7302a856a8046315758ae4ed51c775bc84f (diff)
parent6297dd482d0b0adcf8f9792da90f4543390cd154 (diff)
downloadpygments-git-be71a37c4b860a5247cf7f65ea8f3596cef11e9e.tar.gz
merge with stable
Diffstat (limited to 'scripts/debug_lexer.py')
-rwxr-xr-xscripts/debug_lexer.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/debug_lexer.py b/scripts/debug_lexer.py
index cedd0988..4b7db41a 100755
--- a/scripts/debug_lexer.py
+++ b/scripts/debug_lexer.py
@@ -109,6 +109,8 @@ def main(fn, lexer=None, options={}):
lxcls = find_lexer_class(name)
if lxcls is None:
raise AssertionError('no lexer found for file %r' % fn)
+ print('Using lexer: %s (%s.%s)' % (lxcls.name, lxcls.__module__,
+ lxcls.__name__))
debug_lexer = False
# if profile:
# # does not work for e.g. ExtendedRegexLexers