mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-12 06:18:39 +00:00
Comment includiing -- at end
Comments are incorrectly including -- a the end. This was due to the comment slice being returned 2 charachters too long.
This commit is contained in:
@@ -264,7 +264,7 @@ scan_comment :: proc(t: ^Tokenizer) -> (comment: string, err: Error) {
|
||||
expect(t, .Dash)
|
||||
expect(t, .Gt)
|
||||
|
||||
return string(t.src[offset : t.offset - 1]), .None
|
||||
return string(t.src[offset : t.offset - 3]), .None
|
||||
}
|
||||
|
||||
// Skip CDATA
|
||||
|
||||
Reference in New Issue
Block a user