style: compact inner groups and simple guard bodies

This commit is contained in:
2026-10-27 12:40:41 +01:00
parent f062389ccc
commit 8d1a98f982
22 changed files with 165 additions and 430 deletions
+3 -7
View File
@@ -358,14 +358,10 @@ scan_ident proc(
cursor := start + 1
while (
cursor < program.len
and (
is_alpha(program[cursor])
and (is_alpha(program[cursor])
or is_digit(program[cursor])
or program[cursor] == '_'
)
) {
cursor += 1
}
or program[cursor] == '_')
) cursor += 1
kind :: strmap.get(&keywords, program[start..cursor]) orelse .ident
# member contexts accept keywords and therefore need their interned spelling too.