mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-03 01:07:56 +00:00
Fix handling of unclosed regex classes and repetitions
This commit is contained in:
@@ -267,7 +267,7 @@ scan :: proc(t: ^Tokenizer) -> (token: Token) {
|
||||
kind = .Rune_Class
|
||||
lit = text
|
||||
} else {
|
||||
return { .EOF, "", pos }
|
||||
kind = .EOF
|
||||
}
|
||||
|
||||
case '{':
|
||||
@@ -275,7 +275,7 @@ scan :: proc(t: ^Tokenizer) -> (token: Token) {
|
||||
kind = .Repeat_N
|
||||
lit = text
|
||||
} else {
|
||||
return { .EOF, "", pos }
|
||||
kind = .EOF
|
||||
}
|
||||
|
||||
case '(':
|
||||
|
||||
Reference in New Issue
Block a user