Skip to content

Commit a2b694c

Browse files
authored
Fix overeager <style> detection (#543)
1 parent 56bc549 commit a2b694c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ let text = { text: { match: /[^]/, lineBreaks: true } }
1212

1313
let states = {
1414
main: {
15-
cssBlockStart: { match: '<style', push: 'cssBlock' },
15+
cssBlockStart: { match: /<style(?=[>\s])/, push: 'cssBlock' },
1616
jsBlockStart: { match: '<script', push: 'jsBlock' },
1717
...text,
1818
},

0 commit comments

Comments
 (0)