| Index: mojom/mojom_parser/lexer/tokens.go
|
| diff --git a/mojom/mojom_parser/lexer/tokens.go b/mojom/mojom_parser/lexer/tokens.go
|
| index 9fd0b412fca6ac1da56d1c6a3eb1adf9d678c05b..13bf83418a1a5f71c655d908b97d12b6a464659a 100644
|
| --- a/mojom/mojom_parser/lexer/tokens.go
|
| +++ b/mojom/mojom_parser/lexer/tokens.go
|
| @@ -266,7 +266,7 @@ func (token Token) Snippet(source string, color bool) (snippet string) {
|
| end := len(source)
|
| for index, rune := range source[token.SourcePosBytes:] {
|
| if rune == '\n' || runeCount >= 78 {
|
| - end = index + begin + token.LinePosBytes
|
| + end = index + token.SourcePosBytes
|
| break
|
| }
|
| runeCount++
|
|
|