| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!DOCTYPE language[ |
| 3 |
<!ENTITY charsdelim "_;."(){}@"> |
| 4 |
<!ENTITY wordsep "(?=[&charsdelim;]|\s|$)"> |
| 5 |
]> |
| 6 |
<language name="Agda" version="9" kateversion="5.0" section="Sources" extensions="*.agda" mimetype="text/x-agda" author="Matthias C. M. Troffaes" license="LGPL"> |
| 7 |
<highlighting> |
| 8 |
<list name="reserved keywords"> |
| 9 |
<item>abstract</item> |
| 10 |
<item>codata</item> |
| 11 |
<item>coinductive</item> |
| 12 |
<item>constructor</item> |
| 13 |
<item>data</item> |
| 14 |
<item>do</item> |
| 15 |
<item>eta-equality</item> |
| 16 |
<item>field</item> |
| 17 |
<item>forall</item> |
| 18 |
<item>hiding</item> |
| 19 |
<item>import</item> |
| 20 |
<item>in</item> |
| 21 |
<item>inductive</item> |
| 22 |
<item>infix</item> |
| 23 |
<item>infixl</item> |
| 24 |
<item>infixr</item> |
| 25 |
<item>instance</item> |
| 26 |
<item>interleaved</item> |
| 27 |
<item>let</item> |
| 28 |
<item>macro</item> |
| 29 |
<item>module</item> |
| 30 |
<item>mutual</item> |
| 31 |
<item>no-eta-equality</item> |
| 32 |
<item>open</item> |
| 33 |
<item>overlap</item> |
| 34 |
<item>pattern</item> |
| 35 |
<item>postulate</item> |
| 36 |
<item>primitive</item> |
| 37 |
<item>private</item> |
| 38 |
<item>public</item> |
| 39 |
<item>quote</item> |
| 40 |
<item>quoteTerm</item> |
| 41 |
<item>record</item> |
| 42 |
<item>renaming</item> |
| 43 |
<item>rewrite</item> |
| 44 |
<item>syntax</item> |
| 45 |
<item>tactic</item> |
| 46 |
<item>to</item> |
| 47 |
<item>unquote</item> |
| 48 |
<item>unquoteDecl</item> |
| 49 |
<item>unquoteDef</item> |
| 50 |
<item>using</item> |
| 51 |
<item>variable</item> |
| 52 |
<item>where</item> |
| 53 |
<item>with</item> |
| 54 |
</list> |
| 55 |
<contexts> |
| 56 |
<context attribute="Normal" lineEndContext="#stay" name="code"> |
| 57 |
<RegExpr attribute="Pragma" context="#stay" String="\{-#.*#-\}" /> |
| 58 |
<keyword attribute="Keyword" context="#stay" String="reserved keywords" /> |
| 59 |
<RegExpr attribute="Type" context="#stay" String="(?:Prop[₀-₉]+|Prop[0-9]*|Set[₀-₉]+|Set[0-9]*)&wordsep;" /> |
| 60 |
<RegExpr attribute="Special" context="#stay" String="(?:\->|→|∀|λ|:|=|\|)&wordsep;" /> |
| 61 |
<RegExpr attribute="Float" context="#stay" String="\d+(?:(?:\.\d+)?[eE][+-]?\d+|\.\d+)&wordsep;" /> |
| 62 |
<RegExpr attribute="Decimal" context="#stay" String="[0-9]+&wordsep;" /> |
| 63 |
<DetectChar attribute="Char" context="char" char="'" /> |
| 64 |
<DetectChar attribute="String" context="string" char=""" /> |
| 65 |
<Detect2Chars attribute="Comment" context="comment" char="-" char1="-" /> |
| 66 |
<Detect2Chars attribute="Comment" context="comments" char="{" char1="-" beginRegion="CommentBlock" /> |
| 67 |
<Detect2Chars attribute="Hole" context="hole" char="{" char1="!" /> |
| 68 |
<!-- delimiters which cannot be part of an identifier, or |
| 69 |
backslash which starts a lambda expression --> |
| 70 |
<AnyChar attribute="Special" context="#stay" String="&charsdelim;\\" /> |
| 71 |
<!-- any other identifier (can contain backslash and single |
| 72 |
quote anywhere except at start, but these two special |
| 73 |
cases are already taken care off above) --> |
| 74 |
<RegExpr attribute="Normal" context="#stay" String="[^&charsdelim;\s]+" /> |
| 75 |
</context> |
| 76 |
<context attribute="Comment" lineEndContext="#pop" name="comment"> |
| 77 |
<IncludeRules context="##Comments" /> |
| 78 |
</context> |
| 79 |
<context attribute="Comment" lineEndContext="#stay" name="comments" noIndentationBasedFolding="1"> |
| 80 |
<Detect2Chars attribute="Comment" context="comments" char="{" char1="-" beginRegion="CommentBlock" /> <!-- for nested comments --> |
| 81 |
<Detect2Chars attribute="Comment" context="#pop" char="-" char1="}" endRegion="CommentBlock" /> |
| 82 |
<IncludeRules context="##Comments" /> |
| 83 |
</context> |
| 84 |
<context attribute="Hole" lineEndContext="#stay" name="hole"> |
| 85 |
<Detect2Chars attribute="Hole" context="#pop" char="!" char1="}" /> |
| 86 |
</context> |
| 87 |
<context attribute="Char" lineEndContext="#pop" name="char"> |
| 88 |
<Detect2Chars attribute="Char" context="#stay" char="\" char1="'" /> |
| 89 |
<DetectChar attribute="Char" context="#pop" char="'" /> |
| 90 |
</context> |
| 91 |
<context attribute="String" lineEndContext="#stay" name="string"> |
| 92 |
<Detect2Chars attribute="String" context="#stay" char="\" char1=""" /> |
| 93 |
<DetectChar attribute="String" context="#pop" char=""" /> |
| 94 |
</context> |
| 95 |
</contexts> |
| 96 |
<itemDatas> |
| 97 |
<itemData name="Normal" defStyleNum="dsNormal" spellChecking="false" /> |
| 98 |
<itemData name="Comment" defStyleNum="dsComment" /> |
| 99 |
<itemData name="Pragma" defStyleNum="dsPreprocessor" spellChecking="false" /> |
| 100 |
<itemData name="Hole" defStyleNum="dsOthers" spellChecking="false" /> |
| 101 |
<itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false" /> |
| 102 |
<itemData name="Type" defStyleNum="dsDataType" spellChecking="false" /> |
| 103 |
<itemData name="Special" defStyleNum="dsOthers" spellChecking="false" /> |
| 104 |
<itemData name="Decimal" defStyleNum="dsDecVal" spellChecking="false" /> |
| 105 |
<itemData name="Float" defStyleNum="dsFloat" spellChecking="false" /> |
| 106 |
<itemData name="Char" defStyleNum="dsChar" spellChecking="false" /> |
| 107 |
<itemData name="String" defStyleNum="dsString" /> |
| 108 |
</itemDatas> |
| 109 |
</highlighting> |
| 110 |
<general> |
| 111 |
<folding indentationsensitive="1"/> |
| 112 |
<comments> |
| 113 |
<comment name="singleLine" start="--" position="afterwhitespace" /> |
| 114 |
<comment name="multiLine" start="{-" end="-}" region="CommentBlock" /> |
| 115 |
</comments> |
| 116 |
<keywords casesensitive="1" |
| 117 |
weakDeliminator=":!+,-<=>%&*/?[]^|~\\" |
| 118 |
additionalDeliminator="&charsdelim;" /> |
| 119 |
</general> |
| 120 |
</language> |
| 121 |
<!-- kate: replace-tabs on; tab-width 2; indent-width 2; --> |