fix semi-colon insertion for indented rules

master
Brad Cornes 2021-07-05 14:03:21 +01:00
parent 766a5d533d
commit eaa76f195a
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ export async function stringifyRoot(state: State, root: Root, uri?: string): Pro
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))
}