Compiled temapltes.

Benchmark cleanup
This commit is contained in:
2026-01-22 11:10:47 +05:30
parent 714db30a8c
commit 654b45ee10
31 changed files with 2168 additions and 1251 deletions

View File

@@ -1174,8 +1174,12 @@ pub const Lexer = struct {
if (self.peek() != ' ') return;
const next = self.peekAt(1);
const next2 = self.peekAt(2);
// Don't consume if followed by another selector, attribute, or special syntax
if (next == '.' or next == '#' or next == '(' or next == '=' or next == ':' or
// BUT: #{...} and #[...] are interpolation, not ID selectors
const is_id_selector = next == '#' and next2 != '{' and next2 != '[';
if (next == '.' or is_id_selector or next == '(' or next == '=' or next == ':' or
next == '\n' or next == '\r' or next == 0)
{
return;