style: compact inner groups and simple guard bodies
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user