Also highlight TypeScript (.ts) as JavaScript

As TypeScript extends JavaScript to add types, the basics of JavaScript still apply.
This change will parse `.ts` files as if they are JavaScript files, providing basic highlighting support.
This commit is contained in:
Jip 2020-11-21 23:28:55 +01:00 committed by GitHub
parent 6130726c7f
commit ed51c7c00c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
syntax "JavaScript" "\.js$"
syntax "JavaScript" "\.(js|ts)$"
comment "//"
color blue "\<[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\>"
color blue "\<[-+]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?"