Use or_break and or_continue where appropriate in the core library

This commit is contained in:
gingerBill committed 2023-09-30 15:34:39 +01:00
1 parent 41a22bd83d
commit 14adcb9db8
14 files changed
+92 -142

No files matched your search

+1 -4
View File
@@ -93,10 +93,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
}
}
return star, pattern[:i], pattern[i:]