tailwind-ctp-intellisense @master -
refs -
log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Fix IntelliSense following closing script/style tag containing whitespace (#808)
Signature
-----BEGIN PGP SIGNATURE-----
wsBcBAABCAAQBQJkmrOpCRBK7hj4Ov3rIwAAeKUIAIP2gKs1GEkjUr8rm44I21+h
lj/78lnNIHht0tItXt0t4608fuaU+hSBcS/ud3ZpYo3ysnvd9BWIpXMfQMi9rkJi
AlOrsFP+Rh0o+FKb4aICd11jHh/8ynLX7u+yMiXnVRMiid2ClANZP2DBaxslQMPW
/ewrnDeq6tWAHRZW/dy1srEQwFIDWhJUarL7GHb6hjzTpMmFSBZ68l6Xqzv115ny
IRSO90Zn/ir480tvtULpKfaKGVv4Vaqcl7LG34azhtMz+50+qsMFhUM2GVQVYJx6
lmOIwOK9PfspLmeH7l/01R1LJYhKS/MbThuKYhOvJxPvsN0dy9kuJ0071/1l99k=
=jdbH
-----END PGP SIGNATURE-----
diff --git a/packages/tailwindcss-language-service/src/util/getLanguageBoundaries.ts b/packages/tailwindcss-language-service/src/util/getLanguageBoundaries.ts
index b0eb838d2f25372ec6794c89b2235f28f341be49..87a4c4b569b6e75ef25563bacf991ab5b1d9e56b 100644
--- a/packages/tailwindcss-language-service/src/util/getLanguageBoundaries.ts
+++ b/packages/tailwindcss-language-service/src/util/getLanguageBoundaries.ts
@@ -77,12 +77,12 @@ attrEnd: { match: "'", pop: 1 },
...text,
},
style: {
- cssBlockEnd: { match: '</style>', pop: 1 },
+ cssBlockEnd: { match: /<\/style\s*>/, pop: 1 },
...text,
},
script: {
+ // https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html#option-1-use-script-tag
import { indexToPosition } from './find'
-import { getTextWithoutComments } from './doc'
...text,
},
}