Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
tweak semi-colon regex
Brad Cornes <bradlc41@gmail.com>
3 years ago
1 changed files, 1 additions(+), 1 deletions(-)
M packages/tailwindcss-language-service/src/util/jit.ts -> packages/tailwindcss-language-service/src/util/jit.ts
diff --git a/packages/tailwindcss-language-service/src/util/jit.ts b/packages/tailwindcss-language-service/src/util/jit.ts
index 7aac917c16fabb375755ffed88d015f50f21d7f2..ea863d230ddfee92110f42adbaff1a33c2f7711a 100644
--- a/packages/tailwindcss-language-service/src/util/jit.ts
+++ b/packages/tailwindcss-language-service/src/util/jit.ts
@@ -47,7 +47,7 @@   }
 
   return clone
     .toString()
-    .replace(/([^}{;])$/gm, '$1;')
+    .replace(/([^;{}\s])\n}/g, '$1;\n}')
     .replace(/^(?:    )+/gm, (indent: string) => ' '.repeat((indent.length / 4) * tabSize))
 }