aboutsummaryrefslogtreecommitdiff
path: root/mardown/lexer_test.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-10-02 10:23:52 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2025-10-02 10:23:52 +0200
commitf0899429d56849f8cdf58f53a8232e4433f6725e (patch)
tree263178bc1b9cdd435308c8d622ff7c864c09ff22 /mardown/lexer_test.go
parentce480a18b865acc21eb6c36dea8fc27b08061603 (diff)
feat(markdown): support escape
Diffstat (limited to 'mardown/lexer_test.go')
-rw-r--r--mardown/lexer_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/mardown/lexer_test.go b/mardown/lexer_test.go
index f6a06d5..c9ec349 100644
--- a/mardown/lexer_test.go
+++ b/mardown/lexer_test.go
@@ -15,12 +15,12 @@ func TestLex(t *testing.T) {
if lxs.String() != "Lexers[header(#) literal( bonjour les gens) break(\n) literal(Comment ça va ?) ]" {
t.Errorf("invalid lex, got %s", lxs)
}
- lxs = lex("**hey**, what's up?")
- if lxs.String() != "Lexers[modifier(**) literal(hey) modifier(**) literal(, what's up?) ]" {
+ lxs = lex("***hey***, what's up?")
+ if lxs.String() != "Lexers[modifier(**) modifier(*) literal(hey) modifier(*) 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) ]` {
+ if lxs.String() != `Lexers[literal(Xxx_DarkEmperor_xxX) ]` {
t.Errorf("invalid lex, got %s", lxs)
}
}