From 951d8f9b785585aeca1c1779d23b21e3500d77f9 Mon Sep 17 00:00:00 2001 From: Jack Cherng Date: Fri, 4 Oct 2024 11:02:27 +0800 Subject: [PATCH] chore: add rules for .cjsx, .mjsx, .cts, .cmts, .ctsx, .mtsx Signed-off-by: Jack Cherng --- AutoSetSyntax.sublime-settings | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/AutoSetSyntax.sublime-settings b/AutoSetSyntax.sublime-settings index 1cadd9fe..4dd04833 100644 --- a/AutoSetSyntax.sublime-settings +++ b/AutoSetSyntax.sublime-settings @@ -284,6 +284,28 @@ } ] }, + { + "syntaxes": "scope:source.ts", + "selector": "text.plain", + "match": "all", + "rules": [ + { + "constraint": "is_extension", + "args": [".cts", ".mts"] + } + ] + }, + { + "syntaxes": "scope:source.tsx", + "selector": "text.plain", + "match": "all", + "rules": [ + { + "constraint": "is_extension", + "args": [".ctsx", ".mtsx"] + } + ] + }, { "syntaxes": "scope:source.js", "selector": "text.plain", @@ -302,6 +324,17 @@ } ] }, + { + "syntaxes": "scope:source.jsx", + "selector": "text.plain", + "match": "all", + "rules": [ + { + "constraint": "is_extension", + "args": [".cjsx", ".mjsx"] + } + ] + }, { "syntaxes": "scope:source.lua", "selector": "text.plain",