From a1ce922c1efc95e963ce7d2ff694de4e78b4a1c9 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 27 Sep 2019 00:54:16 +0200 Subject: replace old extension with new one --- _exts/tslex.py | 88 --------------------- _exts/tsref.py | 241 --------------------------------------------------------- conf.py | 4 +- 3 files changed, 2 insertions(+), 331 deletions(-) delete mode 100644 _exts/tslex.py delete mode 100644 _exts/tsref.py diff --git a/_exts/tslex.py b/_exts/tslex.py deleted file mode 100644 index 2be6f29f..00000000 --- a/_exts/tslex.py +++ /dev/null @@ -1,88 +0,0 @@ -from pygments.token import * -from pygments.lexer import RegexLexer, ExtendedRegexLexer, bygroups, using, \ - include, this -import re - -class BetterTypeScriptLexer(RegexLexer): - """ - For `TypeScript `_ source code. - """ - - name = 'TypeScript' - aliases = ['ts'] - filenames = ['*.ts'] - mimetypes = ['text/x-typescript'] - - flags = re.DOTALL - tokens = { - 'commentsandwhitespace': [ - (r'\s+', Text), - (r'