diff options
-rw-r--r-- | manifest.json | 2 | ||||
-rw-r--r-- | plugins/language_tsx.lua | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/manifest.json b/manifest.json index a228f5c..842533a 100644 --- a/manifest.json +++ b/manifest.json @@ -1213,7 +1213,7 @@ }, { "description": "Syntax for [TSX](https://www.typescriptlang.org/docs/handbook/jsx.html) language", - "version": "0.1", + "version": "0.2", "path": "plugins/language_tsx.lua", "id": "language_tsx", "mod_version": "3", 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" }, |