mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-25 18:07:07 +09:00
Add .tsx support for Typescript syntax (#2021)
* Update to look for tsx files also * Shorten filename detection
This commit is contained in:
committed by
GitHub
parent
a36ab0188a
commit
d7abc8f100
@@ -1,7 +1,7 @@
|
|||||||
filetype: typescript
|
filetype: typescript
|
||||||
|
|
||||||
detect:
|
detect:
|
||||||
filename: "\\.ts$"
|
filename: "\\.tsx?$"
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
- constant.number: "\\b[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\\b"
|
- constant.number: "\\b[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\\b"
|
||||||
|
|||||||
Reference in New Issue
Block a user