HMR crashily works, started working on CSS Scanner

Former-commit-id: d0f91082fc
This commit is contained in:
Jarred Sumner
2021-06-14 19:45:51 -07:00
parent 122ef023dd
commit 7eb887edd5
26 changed files with 19641 additions and 136 deletions

View File

@@ -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;
}
}