aboutsummaryrefslogtreecommitdiff
path: root/plugins/language_tsx.lua
diff options
context:
space:
mode:
authorFĂ©lix Sanz <felixsanz@users.noreply.github.com>2023-11-11 21:53:45 +0100
committerGitHub <noreply@github.com>2023-11-11 21:53:45 +0100
commit0c0aa76327f1e2bc3eea388a764aba152e5a0bfb (patch)
treed5d685a1f9de2afc78e5cbb1dfae87b62cb530fb /plugins/language_tsx.lua
parent51246d82f74162c4779de01409121d6e396836a5 (diff)
downloadlite-xl-plugins-0c0aa76327f1e2bc3eea388a764aba152e5a0bfb.tar.gz
lite-xl-plugins-0c0aa76327f1e2bc3eea388a764aba152e5a0bfb.zip
Added astro extension to TSX and fixed block comments (#338)
* Added astro extension to TSX and fixed block comments * Update manifest.json
Diffstat (limited to 'plugins/language_tsx.lua')
-rw-r--r--plugins/language_tsx.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/language_tsx.lua b/plugins/language_tsx.lua
index beedbc6..f6073ab 100644
--- a/plugins/language_tsx.lua
+++ b/plugins/language_tsx.lua
@@ -5,10 +5,11 @@ local syntax = require "core.syntax"
syntax.add {
name = "TypeScript with JSX",
- files = { "%.tsx$" },
+ files = { "%.tsx$", "%.astro$" },
comment = "//",
+ block_comment = { "/*", "*/" },
patterns = {
- { pattern = "//.-\n", type = "comment" },
+ { pattern = "//.*", type = "comment" },
{ pattern = { "/%*", "%*/" }, type = "comment" },
{ pattern = { '"', '"', '\\' }, type = "string" },
{ pattern = { "'", "'", '\\' }, type = "string" },