aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/language_jsx.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/language_jsx.lua b/plugins/language_jsx.lua
index 04e846b..941e786 100644
--- a/plugins/language_jsx.lua
+++ b/plugins/language_jsx.lua
@@ -4,10 +4,11 @@ local syntax = require "core.syntax"
syntax.add {
name = "JSX",
- files = { "%.jsx$" },
+ files = { "%.jsx$", "%.astro$" },
comment = "//",
+ block_comment = { "/*", "*/" },
patterns = {
- { pattern = "//.-\n", type = "comment" },
+ { pattern = "//.*", type = "comment" },
{ pattern = { "/%*", "%*/" }, type = "comment" },
{ pattern = { '"', '"', '\\' }, type = "string" },
{ pattern = { "'", "'", '\\' }, type = "string" },