From 7eb887edd527713214790198de3ccfe828a5768d Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Mon, 14 Jun 2021 19:45:51 -0700 Subject: HMR crashily works, started working on CSS Scanner Former-commit-id: d0f91082fcc8da17d224acb5432339c5d817e1c2 --- src/string_mutable.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/string_mutable.zig') diff --git a/src/string_mutable.zig b/src/string_mutable.zig index 1b63bb9e8..25709fd40 100644 --- a/src/string_mutable.zig +++ b/src/string_mutable.zig @@ -2,6 +2,7 @@ const std = @import("std"); const expect = std.testing.expect; usingnamespace @import("string_types.zig"); +const strings = @import("string_immutable.zig"); const js_lexer = @import("js_lexer.zig"); pub const MutableString = struct { @@ -90,7 +91,7 @@ pub const MutableString = struct { } else if (!needs_gap) { needs_gap = true; // skip the code point, replace it with a single _ - i += std.math.max(js_lexer.utf8ByteSequenceLength(slice[i]), 1) - 1; + i += std.math.max(strings.utf8ByteSequenceLength(slice[i]), 1) - 1; } } -- cgit v1.2.3