mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-03-15 12:46:07 +01:00
reference counting
This commit is contained in:
parent
d9ab81bed1
commit
9ece18a48a
18 changed files with 477 additions and 159 deletions
|
|
@ -56,7 +56,7 @@ class FmtCtx {
|
|||
this.indentation--;
|
||||
if (this.indentation < 0) {
|
||||
throw new Error(
|
||||
"Cannot dedent from 0 indents, there are more dedents than indents"
|
||||
"Cannot dedent from 0 indents, there are more dedents than indents",
|
||||
);
|
||||
}
|
||||
this.linebreak();
|
||||
|
|
@ -92,7 +92,7 @@ class FmtCtx {
|
|||
|
||||
word(
|
||||
word: string | number | bigint,
|
||||
color: (s: string) => string = identity
|
||||
color: (s: string) => string = identity,
|
||||
) {
|
||||
const last = this.wordsInSexpr.length - 1;
|
||||
if (this.wordsInSexpr[last] > 0 && !this.freshLinebreak) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue