From d7abc8f1001043d6cef960ca5f626aca3abed7e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kolind=20S=C3=B8rensen?= Date: Thu, 18 Feb 2021 04:27:45 +0100 Subject: [PATCH] Add .tsx support for Typescript syntax (#2021) * Update to look for tsx files also * Shorten filename detection --- runtime/syntax/typescript.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/syntax/typescript.yaml b/runtime/syntax/typescript.yaml index 9ce50ebd..7f898ab3 100644 --- a/runtime/syntax/typescript.yaml +++ b/runtime/syntax/typescript.yaml @@ -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"