| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!DOCTYPE language> |
| 3 |
<language name="Literate Curry" version="6" kateversion="5.0" |
| 4 |
section="Sources" extensions="*.lcurry" mimetype="text/x-curry" |
| 5 |
author="Björn Peemöller ([email protected])" license="LGPL" |
| 6 |
indenter="haskell"> |
| 7 |
<highlighting> |
| 8 |
<contexts> |
| 9 |
|
| 10 |
<context attribute="Text" lineEndContext="#stay" name="Text"> |
| 11 |
<!-- Bird Tracks --> |
| 12 |
<AnyChar attribute="BirdTrack" context="Code" String="><" column="0"/> |
| 13 |
<!-- \begin{code} and \begin{spec} --> |
| 14 |
<StringDetect attribute="Text" context="normals" String="\begin{code}"/> |
| 15 |
<StringDetect attribute="Text" context="normals" String="\begin{spec}"/> |
| 16 |
</context> |
| 17 |
|
| 18 |
<context attribute="Text" lineEndContext="#pop" name="Code"> |
| 19 |
<RegExpr attribute="Comment" context="multiline" String="\{-[^#]" beginRegion="Comment" /> |
| 20 |
<IncludeRules context="##Curry" /> |
| 21 |
</context> |
| 22 |
|
| 23 |
<context attribute="Text" lineEndContext="#stay" name="normals"> |
| 24 |
<StringDetect attribute="Text" context="#pop" String="\end{code}"/> |
| 25 |
<StringDetect attribute="Text" context="#pop" String="\end{spec}"/> |
| 26 |
<IncludeRules context="##Curry" /> |
| 27 |
</context> |
| 28 |
|
| 29 |
<!-- Handle comments in presence of bird tracks --> |
| 30 |
<context attribute="Comment" lineEndContext="lineend" name="multiline" > |
| 31 |
<Detect2Chars attribute="Comment" context="#pop" char="-" char1="}" endRegion="Comment" /> |
| 32 |
<DetectSpaces /> |
| 33 |
<IncludeRules context="##Comments" /> |
| 34 |
</context> |
| 35 |
|
| 36 |
<context attribute="Text" lineEndContext="#stay" name="lineend"> |
| 37 |
<AnyChar attribute="BirdTrack" context="restart" String="><" column="0"/> |
| 38 |
</context> |
| 39 |
|
| 40 |
<context attribute="Comment" lineEndContext="#pop" name="restart"> |
| 41 |
<Detect2Chars attribute="Comment" context="#pop#pop#pop" char="-" char1="}" /> |
| 42 |
</context> |
| 43 |
</contexts> |
| 44 |
<itemDatas> |
| 45 |
<itemData name="Text" defStyleNum="dsNormal" spellChecking="true" /> |
| 46 |
<itemData name="BirdTrack" defStyleNum="dsOthers" spellChecking="false" /> |
| 47 |
<itemData name="Comment" defStyleNum="dsComment" /> |
| 48 |
</itemDatas> |
| 49 |
</highlighting> |
| 50 |
<general> |
| 51 |
<comments> |
| 52 |
<comment name="multiLine" start="{-" end="-}" region="Comment"/> |
| 53 |
</comments> |
| 54 |
</general> |
| 55 |
</language> |