summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2016-02-02 15:29:05 +0100
committerGeorg Brandl <georg@python.org>2016-02-02 15:29:05 +0100
commitba1f8b3d22366d0b6484ca01d95c294f0213fdcd (patch)
treed95b8c90eb4d5649625bb263f1a50197fa342b90 /scripts
parent0b1ef022c80ccdad99e7e15b9f989ae100dc865e (diff)
downloadpygments-ba1f8b3d22366d0b6484ca01d95c294f0213fdcd.tar.gz
Add lexer for TypoScript (#closes 1173)
Source: https://github.com/Tuurlijk/Pygments-TypoScript-Lexer
Diffstat (limited to 'scripts')
-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