mutable decl syntax change
This commit is contained in:
@@ -133,9 +133,16 @@ lex :: proc(
|
||||
case ':':
|
||||
start := cursor
|
||||
cursor += 1
|
||||
if cursor < len(bytes) && bytes[cursor] == ':' {
|
||||
cursor += 1
|
||||
append_token(&stream, source_file, .Colon_Colon, start, cursor)
|
||||
if cursor < len(bytes) {
|
||||
if bytes[cursor] == ':' {
|
||||
cursor += 1
|
||||
append_token(&stream, source_file, .Colon_Colon, start, cursor)
|
||||
} else if bytes[cursor] == '=' {
|
||||
cursor += 1
|
||||
append_token(&stream, source_file, .Colon_Equal, start, cursor)
|
||||
} else {
|
||||
append_token(&stream, source_file, .Colon, start, cursor)
|
||||
}
|
||||
} else {
|
||||
append_token(&stream, source_file, .Colon, start, cursor)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user