aboutsummaryrefslogtreecommitdiff
path: root/plugins
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
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')
-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" },