From 8874b39e51e8becb32ced79cc049702395ec0136 Mon Sep 17 00:00:00 2001 From: StunxFS Date: Wed, 29 Nov 2023 18:35:24 -0400 Subject: [PATCH] fix compilation --- cmd/src/tools/cmd_fmt.ri | 2 +- lib/rivet/src/fmt/mod.ri | 2 +- lib/rivet/src/utils/mod.ri | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/src/tools/cmd_fmt.ri b/cmd/src/tools/cmd_fmt.ri index c815ae5b3..eda16ff7c 100644 --- a/cmd/src/tools/cmd_fmt.ri +++ b/cmd/src/tools/cmd_fmt.ri @@ -12,7 +12,7 @@ import rivet/prefs; import rivet/utils; import rivet/report; -static fmtDescription := "Formats the given Rivet source files or recursively formats all files in the +var fmtDescription := "Formats the given Rivet source files or recursively formats all files in the directory, then prints their formatted source to stdout."; public func cmd_fmt(args: []string) -> ! { diff --git a/lib/rivet/src/fmt/mod.ri b/lib/rivet/src/fmt/mod.ri index 520439dfc..8d1a94fe7 100644 --- a/lib/rivet/src/fmt/mod.ri +++ b/lib/rivet/src/fmt/mod.ri @@ -10,7 +10,7 @@ import ../ast; import ../utils; import ../prefs; -static maxLen: []uint := [0, 35, 60, 85, 93, 100]; +var maxLen: []uint := [0, 35, 60, 85, 93, 100]; #[boxed] public struct Formatter { diff --git a/lib/rivet/src/utils/mod.ri b/lib/rivet/src/utils/mod.ri index dc94bec10..6e12c6921 100644 --- a/lib/rivet/src/utils/mod.ri +++ b/lib/rivet/src/utils/mod.ri @@ -12,7 +12,7 @@ public const CR: uint8 := 13; public var mut stderrSupportStyles := styles.stderr_support_styles(); -public static tabsTable := [ +public var tabsTable := [ "", "\t", "\t\t",