Fixes #42.
@ -300,6 +300,9 @@ func (r *RegexLexer) Tokenise(options *TokeniseOptions, text string) (Iterator,
if options == nil {
options = defaultOptions
}
if !r.config.DontEnsureNL && !strings.HasSuffix(text, "\n") {
text += "\n"
state := &LexerState{
Lexer: r,
Text: []rune(text),
The note is not visible to the blocked user.