mirror of
https://github.com/scopatz/nanorc
synced 2024-11-24 01:25:39 +01:00
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:
parent
6130726c7f
commit
ed51c7c00c
@ -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…
Reference in New Issue
Block a user