give TypeScript higher priority than TypoScript

This commit is contained in:
Alan Hamlett 2017-02-20 13:22:14 -08:00
parent fad721530a
commit 4ea96210f8
5 changed files with 51 additions and 35 deletions

View file

@ -1,4 +0,0 @@
import tzlocal
from pygments.lexers import get_lexer_by_name, guess_lexer_for_filename
from pygments.modeline import get_filetype_from_buffer
from pygments.util import ClassNotFound

View file

@ -450,6 +450,7 @@ class TypeScriptLexer(RegexLexer):
aliases = ['ts', 'typescript']
filenames = ['*.ts', '*.tsx']
mimetypes = ['text/x-typescript']
priority = 0.11
flags = re.DOTALL | re.MULTILINE