Add .tsx support for Typescript syntax (#2021)

* Update to look for tsx files also

* Shorten filename detection
This commit is contained in:
Sebastian Kolind Sørensen 2021-02-18 04:27:45 +01:00 committed by GitHub
parent a36ab0188a
commit d7abc8f100
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,7 @@
filetype: typescript
detect:
filename: "\\.ts$"
filename: "\\.tsx?$"
rules:
- constant.number: "\\b[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\\b"