diff options
author | Georg Brandl <georg@python.org> | 2016-02-02 15:29:05 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2016-02-02 15:29:05 +0100 |
commit | ba1f8b3d22366d0b6484ca01d95c294f0213fdcd (patch) | |
tree | d95b8c90eb4d5649625bb263f1a50197fa342b90 /scripts | |
parent | 0b1ef022c80ccdad99e7e15b9f989ae100dc865e (diff) | |
download | pygments-ba1f8b3d22366d0b6484ca01d95c294f0213fdcd.tar.gz |
Add lexer for TypoScript (#closes 1173)
Source: https://github.com/Tuurlijk/Pygments-TypoScript-Lexer
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/debug_lexer.py | 2 |
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 |