diff --git a/packages/tailwindcss-language-service/src/diagnostics/getInvalidTailwindDirectiveDiagnostics.ts b/packages/tailwindcss-language-service/src/diagnostics/getInvalidTailwindDirectiveDiagnostics.ts index 74e26f94fc326773188c26e959750033cd895519..59f6de7391930cffba61ae94570a334abcc703d9 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+(?[^\r\n]+)/g + regex = /(?:\s|^)@tailwind\s+(?[^\n]+)/g } else { regex = /(?:\s|^)@tailwind\s+(?[^;]+)/g }