]> git.lizzy.rs Git - micro.git/commitdiff
Add .tsx support for Typescript syntax (#2021)
authorSebastian Kolind Sørensen <sks1993@gmail.com>
Thu, 18 Feb 2021 03:27:45 +0000 (04:27 +0100)
committerGitHub <noreply@github.com>
Thu, 18 Feb 2021 03:27:45 +0000 (22:27 -0500)
* Update to look for tsx files also

* Shorten filename detection

runtime/syntax/typescript.yaml

index 9ce50ebd71216a61fd4a7d755eaf65a32a0f708e..7f898ab3d43ed6014a69305f737159679fafb4f1 100644 (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"