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.
pull/343/head
Jip 3 years ago committed by GitHub
parent 6130726c7f
commit ed51c7c00c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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]?"

Loading…
Cancel
Save