Skip to content

Commit a672087

Browse files
Yash-Singh1davidhcefx
authored andcommitted
Add .typescript and .javascript support
1 parent 6ca4ffa commit a672087

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

javascript.nanorc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
syntax "JavaScript" "\.(js|ts)$"
1+
syntax "JavaScript" "\.(js|ts|javascript|typescript)$"
22
comment "//"
33
color blue "\<[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\>"
44
color blue "\<[-+]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?"

ts.nanorc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
syntax "typescript" "\.(ts)$"
1+
syntax "typescript" "\.(ts|typescript)$"
22
header "^#!.*\/(env +)ts-node"
33

44
## Default

0 commit comments

Comments
 (0)