diff --git a/src/swarm-doc/Swarm/Doc/Keyword.hs b/src/swarm-doc/Swarm/Doc/Keyword.hs index a9fc3d084..fea1355ad 100644 --- a/src/swarm-doc/Swarm/Doc/Keyword.hs +++ b/src/swarm-doc/Swarm/Doc/Keyword.hs @@ -53,4 +53,4 @@ operatorNames = T.intercalate "|" $ map (escape . constSyntax) operators slashNotComment = \case '/' -> "/(?![/|*])" c -> T.singleton c - escape = T.concatMap (\c -> if c `elem` special then T.snoc "\\\\" c else slashNotComment c) + escape = T.concatMap (\c -> if c `elem` special then T.snoc "\\" c else slashNotComment c)