tailwind-ctp-intellisense @master -
refs -
log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Fix `InvalidTailwindDirective` in `notSemicolonLanguages` with CRLF file endings (#723)
* Fix InvalidTailwindDirective in notSemicolonLanguages with CRLF file endings
* Fix regex
---------
Co-authored-by: Jordan Pittman <jordan@cryptica.me>
Signature
-----BEGIN PGP SIGNATURE-----
wsBcBAABCAAQBQJkBfyDCRBK7hj4Ov3rIwAAqdsIALKSUJCuVF9Tb1CUtmpH0exf
TCnsfMN0rvu9RQHrtSI/7tgGeAoLopEuQKxCSuno8F80xA3drpwioGOOQIAsHRPx
yJ7JgxQ06OTiUt/B92U5a9YTmaU9uJv8j8PgB/O92rZI5GTJQGsgW6iYEIGvaS24
dc7pjtBBStaWhwUVns2EIVDoebDCxOvAPt8EiPtS+nykaZ46W6UUxOy0PlXBgEHA
533mNAfjWBeA0jCfG+XDt/sW5Xej1QYw3Pe8ZlJHBLBvd3Egwomzf8rz5ThM5rhh
CxuMXnt0huunyEOs/dc+jMGy2vOBPJzIWl/LM5eYF9bzdV+qiPBIkr+JIOC2Ols=
=wSp6
-----END PGP SIGNATURE-----
diff --git a/packages/tailwindcss-language-service/src/diagnostics/getInvalidTailwindDirectiveDiagnostics.ts b/packages/tailwindcss-language-service/src/diagnostics/getInvalidTailwindDirectiveDiagnostics.ts
index 59f6de7391930cffba61ae94570a334abcc703d9..74e26f94fc326773188c26e959750033cd895519 100644
--- a/packages/tailwindcss-language-service/src/diagnostics/getInvalidTailwindDirectiveDiagnostics.ts
+++ b/packages/tailwindcss-language-service/src/diagnostics/getInvalidTailwindDirectiveDiagnostics.ts
@@ -35,7 +35,7 @@ notSemicolonLanguages.includes(document.languageId) ||
(state.editor &&
notSemicolonLanguages.includes(state.editor.userLanguages[document.languageId]))
) {
- regex = /(?:\s|^)@tailwind\s+(?<value>[^\n]+)/g
+ regex = /(?:\s|^)@tailwind\s+(?<value>[^\r\n]+)/g
} else {
regex = /(?:\s|^)@tailwind\s+(?<value>[^;]+)/g
}