Skip to content

Commit eaa76f1

Browse files
committed
fix semi-colon insertion for indented rules
1 parent 766a5d5 commit eaa76f1

File tree

1 file changed

+1
-1
lines changed
  • packages/tailwindcss-language-service/src/util

1 file changed

+1
-1
lines changed

packages/tailwindcss-language-service/src/util/jit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export async function stringifyRoot(state: State, root: Root, uri?: string): Pro
4747

4848
return clone
4949
.toString()
50-
.replace(/([^;{}\s])\n}/g, '$1;\n}')
50+
.replace(/([^;{}\s])(\n\s*})/g, (_match, before, after) => `${before};${after}`)
5151
.replace(/^(?: )+/gm, (indent: string) => ' '.repeat((indent.length / 4) * tabSize))
5252
}
5353

0 commit comments

Comments
 (0)