Another few renames
This commit is contained in:
parent
5e92771aef
commit
ce5c58900b
1 changed files with 7 additions and 7 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
const cham = @import("chameleon");
|
const cham = @import("chameleon");
|
||||||
|
|
||||||
const TrackedString = @import("../util/utils.zig").TrackedString;
|
const SmartString = @import("../util/utils.zig").SmartString;
|
||||||
|
|
||||||
const log = std.log;
|
const log = std.log;
|
||||||
|
|
||||||
|
|
@ -20,10 +20,10 @@ pub const Color = enum {
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const ScopeModifier = struct {
|
pub const ScopeModifier = struct {
|
||||||
scope: TrackedString,
|
scope: SmartString,
|
||||||
color: ?Color = .default,
|
color: ?Color = .default,
|
||||||
bright: bool = false,
|
bright: bool = false,
|
||||||
rename: ?TrackedString = null,
|
rename: ?SmartString = null,
|
||||||
};
|
};
|
||||||
|
|
||||||
const Allocator = std.mem.Allocator;
|
const Allocator = std.mem.Allocator;
|
||||||
|
|
@ -238,13 +238,13 @@ test "logFn works" {
|
||||||
defer deinit();
|
defer deinit();
|
||||||
|
|
||||||
try config.addScope(.{
|
try config.addScope(.{
|
||||||
.scope = TrackedString.constant("someScope"),
|
.scope = SmartString.constant("someScope"),
|
||||||
.rename = TrackedString.constant("some rename"),
|
.rename = SmartString.constant("some rename"),
|
||||||
.color = .green,
|
.color = .green,
|
||||||
});
|
});
|
||||||
try config.addScope(.{
|
try config.addScope(.{
|
||||||
.scope = TrackedString.constant("other"),
|
.scope = SmartString.constant("other"),
|
||||||
.rename = TrackedString.constant("other rename"),
|
.rename = SmartString.constant("other rename"),
|
||||||
.color = .blue,
|
.color = .blue,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue