From 0c0aa76327f1e2bc3eea388a764aba152e5a0bfb Mon Sep 17 00:00:00 2001 From: FĂ©lix Sanz Date: Sat, 11 Nov 2023 21:53:45 +0100 Subject: Added astro extension to TSX and fixed block comments (#338) * Added astro extension to TSX and fixed block comments * Update manifest.json --- plugins/language_tsx.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'plugins/language_tsx.lua') 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" }, -- cgit v1.2.3