chore: fix highlight cursor

This commit is contained in:
Steven 2024-01-27 12:35:01 +08:00
parent 8455114eef
commit 10d709c167

View File

@ -40,5 +40,5 @@ func (*HighlightParser) Match(tokens []*tokenizer.Token) (ast.Node, int) {
return &ast.Highlight{
Content: tokenizer.Stringify(matchedToken[2:cursor]),
}, cursor + 1
}, cursor + 2
}