mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-03 05:08:14 +00:00
Use or_break and or_continue where appropriate in the core library
This commit is contained in:
@@ -99,9 +99,7 @@ scan_chunk :: proc(pattern: string) -> (star: bool, chunk, rest: string) {
|
||||
case ']':
|
||||
in_range = false
|
||||
case '*':
|
||||
if !in_range {
|
||||
break scan_loop
|
||||
}
|
||||
in_range or_break scan_loop
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user