give TypeScript higher priority than TypoScript
This commit is contained in:
parent
fad721530a
commit
4ea96210f8
5 changed files with 51 additions and 35 deletions
|
@ -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
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue