style: use snake_case for constants
This commit is contained in:
@@ -260,9 +260,9 @@ scan_ident proc(start usize, program []u8) ScanIdentResult {
|
||||
# don't intern keywords (already O(1) lookup via token kind)
|
||||
kind :: strmap.get(&keywords, program[start..cursor]) orelse .ident
|
||||
str_id :: if (kind == .ident)
|
||||
strpool.intern(&strpool.strings, program[start..cursor]) catch strpool.NO_STR
|
||||
strpool.intern(&strpool.strings, program[start..cursor]) catch strpool.no_str
|
||||
else
|
||||
strpool.NO_STR
|
||||
strpool.no_str
|
||||
return ScanIdentResult{ end = cursor, kind = kind, str_id = str_id }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user