| ... | ... | @@ -66,11 +66,11 @@ pub fn do(comptime input: string, comptime symbols: []const u8) []const Token { |
| 66 | 66 | shouldFlush = false; |
| 67 | 67 | break :blk; |
| 68 | 68 | } |
| 69 | | if (std.mem.indexOf(u8, Token.skippedChars, s)) |_| { |
| 69 | if (std.mem.indexOfScalar(u8, Token.skippedChars, c)) |_| { |
| 70 | 70 | shouldFlush = true; |
| 71 | 71 | break :blk; |
| 72 | 72 | } |
| 73 | | if (std.mem.indexOf(u8, symbols, s)) |_| { |
| 73 | if (std.mem.indexOfScalar(u8, symbols, c)) |_| { |
| 74 | 74 | shouldFlush = true; |
| 75 | 75 | break :blk; |
| 76 | 76 | } |
| ... | ... | @@ -88,11 +88,11 @@ pub fn do(comptime input: string, comptime symbols: []const u8) []const Token { |
| 88 | 88 | start = i; |
| 89 | 89 | end = i; |
| 90 | 90 | } |
| 91 | | if (std.mem.indexOf(u8, Token.skippedChars, s)) |_| { |
| 91 | if (std.mem.indexOfScalar(u8, Token.skippedChars, c)) |_| { |
| 92 | 92 | start += 1; |
| 93 | 93 | end += 1; |
| 94 | 94 | } |
| 95 | | if (std.mem.indexOf(u8, symbols, s)) |_| { |
| 95 | if (std.mem.indexOfScalar(u8, symbols, c)) |_| { |
| 96 | 96 | ret = ret ++ &[_]Token{.{ .symbol = s }}; |
| 97 | 97 | start += 1; |
| 98 | 98 | end += 1; |