File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -427,8 +427,8 @@ func (l *Lexer) readSnippet() string {
427
427
return result
428
428
}
429
429
}
430
- if strings .HasPrefix (stackTop , currentWhitespace ) || currentWhitespace == "\n " || currentWhitespace == "\r " || currentWhitespace == string (0 ) { // Then we've unindented. Dobby is free!
431
- if currentWhitespace != "\n " && currentWhitespace != "\r " && currentWhitespace == string (0 ) {
430
+ if strings .HasPrefix (stackTop , currentWhitespace ) || currentWhitespace == "\n " || currentWhitespace == "\r " || currentWhitespace == string (rune ( 0 ) ) { // Then we've unindented. Dobby is free!
431
+ if currentWhitespace != "\n " && currentWhitespace != "\r " && currentWhitespace == string (rune ( 0 ) ) {
432
432
l .snippetWhitespace = currentWhitespace
433
433
}
434
434
return result
You can’t perform that action at this time.
0 commit comments