fix semi-colon insertion for indented rules
parent
766a5d533d
commit
eaa76f195a
|
@ -47,7 +47,7 @@ export async function stringifyRoot(state: State, root: Root, uri?: string): Pro
|
||||||
|
|
||||||
return clone
|
return clone
|
||||||
.toString()
|
.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))
|
.replace(/^(?: )+/gm, (indent: string) => ' '.repeat((indent.length / 4) * tabSize))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue