Fix roff ms syntax highlighting definitions.

Begin each string definition with `\&`.
Closes #8175. Thanks to Branden Robinson.
This commit is contained in:
John MacFarlane 2022-07-11 23:58:13 +02:00
parent 05ab2060d6
commit cf57a8344a

View file

@ -578,7 +578,7 @@ hexColor (RGB r g b) = T.pack $ printf "%02x%02x%02x" r g b
toMacro :: Style -> TokenType -> Doc Text
toMacro sty toktype =
nowrap (literal ".ds " <> literal (tshow toktype) <> literal " " <>
nowrap (literal ".ds " <> literal (tshow toktype) <> literal " \\&" <>
setbg <> setcolor <> setfont <>
literal "\\\\$1" <>
resetfont <> resetcolor <> resetbg)