From de803487db3f02946eee753d50db00e625888049 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Tue, 30 Sep 2025 17:03:45 +0200 Subject: feat(markdown): support escape --- mardown/lexer_test.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mardown/lexer_test.go') diff --git a/mardown/lexer_test.go b/mardown/lexer_test.go index 296e9b9..f6a06d5 100644 --- a/mardown/lexer_test.go +++ b/mardown/lexer_test.go @@ -19,4 +19,8 @@ func TestLex(t *testing.T) { if lxs.String() != "Lexers[modifier(**) literal(hey) modifier(**) literal(, what's up?) ]" { t.Errorf("invalid lex, got %s", lxs) } + lxs = lex(`Xxx\_DarkEmperor\_xxX`) + if lxs.String() != `Lexers[literal(Xxx) escape(\) modifier(_) literal(DarkEmperor) escape(\) modifier(_) literal(xxX) ]` { + t.Errorf("invalid lex, got %s", lxs) + } } -- cgit v1.2.3