From a6c19d7cb49fe7de40d86c3157fdeb445ee5c16c Mon Sep 17 00:00:00 2001 From: Brad Cornes Date: Tue, 27 Jun 2023 06:02:17 -0400 Subject: [PATCH] Fix IntelliSense following closing script/style tag containing whitespace (#808) --- .../src/util/getLanguageBoundaries.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/tailwindcss-language-service/src/util/getLanguageBoundaries.ts b/packages/tailwindcss-language-service/src/util/getLanguageBoundaries.ts index b0eb838..87a4c4b 100644 --- a/packages/tailwindcss-language-service/src/util/getLanguageBoundaries.ts +++ b/packages/tailwindcss-language-service/src/util/getLanguageBoundaries.ts @@ -77,11 +77,11 @@ let states = { ...text, }, style: { - cssBlockEnd: { match: '', pop: 1 }, + cssBlockEnd: { match: /<\/style\s*>/, pop: 1 }, ...text, }, script: { - jsBlockEnd: { match: '', pop: 1 }, + jsBlockEnd: { match: /<\/script\s*>/, pop: 1 }, ...text, }, }