| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!DOCTYPE language> |
| 3 |
<language name="Literate Haskell" version="9" kateversion="5.53" section="Sources" extensions="*.lhs" mimetype="text/x-literate-haskell" author="Nicolas Wu ([email protected])" license="LGPL"> |
| 4 |
<highlighting> |
| 5 |
<contexts> |
| 6 |
<context attribute="Text" lineEndContext="#stay" name="text"> |
| 7 |
<AnyChar attribute="BirdTrack" context="normal" String="><" column="0"/> |
| 8 |
<StringDetect attribute="Text" context="normals" String="\begin{code}"/> |
| 9 |
<StringDetect attribute="Text" context="normals" String="\begin{spec}"/> |
| 10 |
</context> |
| 11 |
<context attribute="Text" lineEndContext="#pop" name="normal"> |
| 12 |
<RegExpr attribute="Comment" context="comments'" String="\{-[^#]" beginRegion="Comment" /> |
| 13 |
<IncludeRules context="##Haskell" /> |
| 14 |
</context> |
| 15 |
<context attribute="Text" lineEndContext="#stay" name="normals"> |
| 16 |
<StringDetect attribute="Text" context="#pop" String="\end{code}"/> |
| 17 |
<StringDetect attribute="Text" context="#pop" String="\end{spec}"/> |
| 18 |
<IncludeRules context="##Haskell" /> |
| 19 |
</context> |
| 20 |
<context attribute="Comment" lineEndContext="uncomments" name="comments'" > |
| 21 |
<Detect2Chars attribute="Comment" context="#pop" char="-" char1="}" endRegion="Comment" /> |
| 22 |
<DetectSpaces /> |
| 23 |
<IncludeRules context="##Comments" /> |
| 24 |
</context> |
| 25 |
<context attribute="Text" lineEndContext="#stay" name="uncomments"> |
| 26 |
<AnyChar attribute="BirdTrack" context="recomments" String="><" column="0"/> |
| 27 |
</context> |
| 28 |
<context attribute="Comment" lineEndContext="#pop" name="recomments"> |
| 29 |
<Detect2Chars attribute="Comment" context="#pop#pop#pop" char="-" char1="}" /> |
| 30 |
</context> |
| 31 |
</contexts> |
| 32 |
<itemDatas> |
| 33 |
<itemData name="Text" defStyleNum="dsNormal" spellChecking="true" /> |
| 34 |
<itemData name="BirdTrack" defStyleNum="dsOthers" spellChecking="false" /> |
| 35 |
<itemData name="Comment" defStyleNum="dsComment" /> |
| 36 |
</itemDatas> |
| 37 |
</highlighting> |
| 38 |
<general> |
| 39 |
<comments> |
| 40 |
<comment name="multiLine" start="{-" end="-}" region="Comment"/> |
| 41 |
</comments> |
| 42 |
</general> |
| 43 |
</language> |