We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93fa00c commit d50cf99Copy full SHA for d50cf99
core/odin/parser/parser.odin
@@ -99,7 +99,7 @@ end_pos :: proc(tok: tokenizer.Token) -> tokenizer.Pos {
99
pos := tok.pos
100
pos.offset += len(tok.text)
101
102
- if tok.kind == .Comment || tok.kind == .String {
+ if (tok.kind == .Comment && len(tok.text) >= 2) || (tok.kind == .String && len(tok.text) >= 1) {
103
if tok.text[:2] == "/*" || tok.text[:1] == "`" {
104
for i := 0; i < len(tok.text); i += 1 {
105
c := tok.text[i]
0 commit comments