Skip to content

Commit a6c19d7

Browse files
authored
Fix IntelliSense following closing script/style tag containing whitespace (tailwindlabs#808)
1 parent 1b8fa09 commit a6c19d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/tailwindcss-language-service/src/util/getLanguageBoundaries.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ let states = {
7777
...text,
7878
},
7979
style: {
80-
cssBlockEnd: { match: '</style>', pop: 1 },
80+
cssBlockEnd: { match: /<\/style\s*>/, pop: 1 },
8181
...text,
8282
},
8383
script: {
84-
jsBlockEnd: { match: '</script>', pop: 1 },
84+
jsBlockEnd: { match: /<\/script\s*>/, pop: 1 },
8585
...text,
8686
},
8787
}

0 commit comments

Comments
 (0)