aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
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" },