1 2 3 4 5 6 7 8 9 10 11 12 13
|
diff --git a/skylighting-core/xml/haskell.xml b/skylighting-core/xml/haskell.xml
index 9c6cf4a..bdb65b5 100644
--- a/skylighting-core/xml/haskell.xml
+++ b/skylighting-core/xml/haskell.xml
@@ -484,7 +484,7 @@
<RegExpr attribute="Octal" context="#stay" String="0[Oo][0-7]+"/>
<RegExpr attribute="Hex" context="#stay" String="0[Xx][0-9A-Fa-f]+"/>
<Int attribute="Decimal" context="#stay" />
- <DetectChar attribute="Char" context="char" char="'" />
+ <RegExpr attribute="Char" context="#stay" String="'(\\'|\\[^']+|[^\\\n])'" /> <!-- see https://github.com/jgm/skylighting/pull/40 -->
<DetectChar attribute="String" context="string" char=""" />
<DetectChar attribute="Function Infix" context="infix" char="`"/>
|