Skip to content

Commit

Permalink
Remove double escape, praised be YAML
Browse files Browse the repository at this point in the history
  • Loading branch information
xsebek committed Jun 9, 2024
1 parent d6853a6 commit f5d2554
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/swarm-doc/Swarm/Doc/Keyword.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit f5d2554

Please sign in to comment.