Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
fix semi-colon insertion for indented rules
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 ea863d230ddfee92110f42adbaff1a33c2f7711a..4570b56dbb0d7f9ec895b2ffb475e6d74032f89c 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(/([^;{}\s])\n}/g, '$1;\n}')
+    .replace(/([^;{}\s])(\n\s*})/g, (_match, before, after) => `${before};${after}`)
     .replace(/^(?:    )+/gm, (indent: string) => ' '.repeat((indent.length / 4) * tabSize))
 }