From 95057f2d5642dcdbe98392a822498271cc9a9945 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roger=20Sch=C3=B6nb=C3=A4chler?= <42278642+schoero@users.noreply.github.com> Date: Sun, 1 Sep 2024 22:04:10 +0200 Subject: [PATCH] feat: add support for html --- package.json | 7 +++++-- syntaxes/tailwindcss.json | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index db92474..9395a26 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "0.0.4", + "version": "0.1.0", "type": "module", "name": "vscode-tailwindcss-syntax-highlighting", "displayName": "Syntax Highlighting for Tailwind CSS", @@ -54,6 +54,7 @@ "ts", "jsx", "tsx", + "html", "syntax", "highlighting" ], @@ -67,6 +68,7 @@ "grammars": [ { "embeddedLanguages": { + "meta.tag.html": "html", "meta.tag.js": "js", "meta.tag.jsx": "jsx", "meta.tag.ts": "ts", @@ -76,7 +78,8 @@ "source.js", "source.jsx", "source.ts", - "source.tsx" + "source.tsx", + "text.html" ], "path": "./syntaxes/tailwindcss.json", "scopeName": "source.tailwindcss" diff --git a/syntaxes/tailwindcss.json b/syntaxes/tailwindcss.json index e153b10..258acef 100644 --- a/syntaxes/tailwindcss.json +++ b/syntaxes/tailwindcss.json @@ -1,6 +1,6 @@ { "$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json", - "injectionSelector": "L:source.js -comment, L:source.ts -comment, L:source.jsx -comment, L:source.tsx -comment", + "injectionSelector": "L:source.js -comment, L:source.ts -comment, L:source.jsx -comment, L:source.tsx -comment, L:text.html -comment", "name": "tailwindcss syntax highlighting", "patterns": [ {