| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!DOCTYPE language> |
| 3 |
<language name="Elm" version="8" kateversion="5.0" section="Sources" extensions="*.elm" author="Bonghyun Kim ([email protected])" license="MIT" style="elm"> |
| 4 |
<highlighting> |
| 5 |
<list name="declarations"> |
| 6 |
<item>type</item> |
| 7 |
<item>alias</item> |
| 8 |
<item>port</item> |
| 9 |
</list> |
| 10 |
<list name="controlFlows"> |
| 11 |
<item>case</item> |
| 12 |
<item>of</item> |
| 13 |
<item>if</item> |
| 14 |
<item>else</item> |
| 15 |
<item>then</item> |
| 16 |
</list> |
| 17 |
<list name="letExpressions"> |
| 18 |
<item>let</item> |
| 19 |
<item>in</item> |
| 20 |
</list> |
| 21 |
<list name="imports"> |
| 22 |
<item>module</item> |
| 23 |
<item>exposing</item> |
| 24 |
<item>import</item> |
| 25 |
<item>as</item> |
| 26 |
</list> |
| 27 |
<list name="infixes"> |
| 28 |
<item>infix</item> |
| 29 |
<item>left</item> |
| 30 |
<item>right</item> |
| 31 |
<item>non</item> |
| 32 |
</list> |
| 33 |
<list name="effects"> |
| 34 |
<item>effect</item> |
| 35 |
<item>where</item> |
| 36 |
<item>command</item> |
| 37 |
<item>subscription</item> |
| 38 |
</list> |
| 39 |
<contexts> |
| 40 |
<context attribute="Normal" lineEndContext="#stay" name="code"> |
| 41 |
<Detect2Chars attribute="Comment" context="comments" char="{" char1="-" beginRegion="BlockComment" /> |
| 42 |
<Detect2Chars attribute="Comment" context="comment" char="-" char1="-" /> |
| 43 |
|
| 44 |
<keyword attribute="Keyword" context="#stay" String="declarations" /> |
| 45 |
<keyword attribute="Keyword" context="#stay" String="letExpressions" /> |
| 46 |
<keyword attribute="Keyword" context="#stay" String="effects" /> |
| 47 |
<keyword attribute="Keyword" context="#stay" String="imports" /> |
| 48 |
<keyword attribute="Keyword" context="#stay" String="infixes" /> |
| 49 |
<keyword attribute="ControlFlowKeyword" context="#stay" String="controlFlows" /> |
| 50 |
|
| 51 |
<WordDetect attribute="Import" context="module" String="module" /> |
| 52 |
<WordDetect attribute="Port" context="port" String="port" /> |
| 53 |
<WordDetect attribute="Import" context="import" String="import" /> |
| 54 |
|
| 55 |
<RegExpr attribute="Name" context="#stay" String="(\b[a-z]\w*|\b_\b)" /> |
| 56 |
<RegExpr attribute="Operator" context="#stay" String="->|::|\/\/|\.\.|&&|\|\||\+\+|\|>|<\||>>|<<|==|\/=|<=|>=|[+-\/*%=><^\|!@#$&~?]" /> |
| 57 |
|
| 58 |
<RegExpr attribute="Type" context="#stay" String="\b[A-Z][\w]*" /> |
| 59 |
|
| 60 |
<Int attribute="Decimal" context="#stay" /> |
| 61 |
<RegExpr attribute="Hex" context="#stay" String="0x[\da-f]+" insensitive="true" /> |
| 62 |
<RegExpr attribute="Float" context="#stay" String="\d+\.\d+(e[+-]?\d+)?" insensitive="true" /> |
| 63 |
|
| 64 |
<RegExpr attribute="Char" context="#stay" String="'(.|\\'|\\n|\\r|\\t|\\"|\\\\|\\u\{(10|0?[0-9])[0-9a-fA-F]{4}\})'" /> |
| 65 |
<StringDetect attribute="String" context="multilineString" String="""""/> |
| 66 |
<DetectChar attribute="String" context="string" char=""" /> |
| 67 |
</context> |
| 68 |
<context attribute="Comment" lineEndContext="#pop" name="comment"> |
| 69 |
<DetectSpaces /> |
| 70 |
<IncludeRules context="##Comments" /> |
| 71 |
</context> |
| 72 |
<context attribute="Comment" lineEndContext="#stay" name="comments"> |
| 73 |
<Detect2Chars attribute="Comment" context="comments" char="{" char1="-" beginRegion="BlockComment" /> |
| 74 |
<Detect2Chars attribute="Comment" context="#pop" char="-" char1="}" endRegion="BlockComment" /> |
| 75 |
<DetectSpaces /> |
| 76 |
<IncludeRules context="##Comments" /> |
| 77 |
</context> |
| 78 |
<context attribute="String" lineEndContext="#stay" name="string"> |
| 79 |
<RegExpr attribute="String" context="#stay" String="\\." /> |
| 80 |
<DetectChar attribute="String" context="#pop" char=""" /> |
| 81 |
</context> |
| 82 |
<context attribute="String" lineEndContext="#stay" name="multilineString"> |
| 83 |
<DetectSpaces attribute="String" context="#stay" /> |
| 84 |
<RegExpr attribute="String" context="#stay" String="\.*" /> |
| 85 |
<StringDetect attribute="String" context="#pop" String=""""" /> |
| 86 |
</context> |
| 87 |
<context attribute="Normal" lineEndContext="#stay" name="module"> |
| 88 |
<DetectChar attribute="Normal" context="moduleParentheses" char="(" /> |
| 89 |
<keyword attribute="Keyword" context="#stay" String="imports" /> |
| 90 |
<RegExpr attribute="Name" context="#stay" String="\b[a-z][\w]*" /> |
| 91 |
<RegExpr attribute="Type" context="#stay" String="\b[A-Z][\w]*" /> |
| 92 |
<DetectChar attribute="Normal" context="#pop" char=")" /> |
| 93 |
</context> |
| 94 |
<context attribute="Normal" lineEndContext="#stay" name="moduleParentheses"> |
| 95 |
<DetectChar attribute="Normal" context="moduleParentheses" char="(" /> |
| 96 |
<RegExpr attribute="Name" context="#stay" String="\b[a-z][\w]*" /> |
| 97 |
<RegExpr attribute="Type" context="#stay" String="\b[A-Z][\w]*" /> |
| 98 |
<DetectChar attribute="Normal" context="#pop" char=")" /> |
| 99 |
</context> |
| 100 |
<context attribute="Normal" lineEndContext="#stay" name="port"> |
| 101 |
<WordDetect attribute="Import" context="module" String="imports" /> |
| 102 |
</context> |
| 103 |
<context attribute="Normal" lineEndContext="#stay" name="import"> |
| 104 |
<DetectChar attribute="Normal" context="moduleParentheses" char="(" /> |
| 105 |
<keyword attribute="Keyword" context="#stay" String="imports" /> |
| 106 |
<RegExpr attribute="Name" context="#stay" String="\b[a-z][\w]*" /> |
| 107 |
<RegExpr attribute="Type" context="#stay" String="\b[A-Z][\w]*" /> |
| 108 |
<DetectChar attribute="Normal" context="#pop" char=")" /> |
| 109 |
</context> |
| 110 |
</contexts> |
| 111 |
|
| 112 |
<itemDatas> |
| 113 |
<itemData name="Normal" defStyleNum="dsNormal" spellChecking="false" /> |
| 114 |
<itemData name="Comment" defStyleNum="dsComment" /> |
| 115 |
|
| 116 |
<itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false" /> |
| 117 |
<itemData name="ControlFlowKeyword" defStyleNum="dsControlFlow" spellChecking="false" /> |
| 118 |
|
| 119 |
<itemData name="Name" defStyleNum="dsFunction" spellChecking="false" /> |
| 120 |
<itemData name="Port" defStyleNum="dsNormal" spellChecking="false" /> |
| 121 |
<itemData name="Import" defStyleNum="dsImport" spellChecking="false" /> |
| 122 |
<itemData name="Operator" defStyleNum="dsOperator" spellChecking="false" /> |
| 123 |
<itemData name="Type" defStyleNum="dsDataType" spellChecking="false" /> |
| 124 |
|
| 125 |
<itemData name="Decimal" defStyleNum="dsDecVal" spellChecking="false" /> |
| 126 |
<itemData name="Hex" defStyleNum="dsBaseN" spellChecking="false" /> |
| 127 |
<itemData name="Float" defStyleNum="dsFloat" spellChecking="false" /> |
| 128 |
<itemData name="Char" defStyleNum="dsChar" spellChecking="false" /> |
| 129 |
<itemData name="String" defStyleNum="dsString" /> |
| 130 |
</itemDatas> |
| 131 |
</highlighting> |
| 132 |
<general> |
| 133 |
<folding indentationsensitive="1"/> |
| 134 |
<comments> |
| 135 |
<comment name="singleLine" start="--" position="afterwhitespace" /> |
| 136 |
<comment name="multiLine" start="{-" end="-}" region="BlockComment" /> |
| 137 |
</comments> |
| 138 |
<keywords casesensitive="1" /> |
| 139 |
</general> |
| 140 |
</language> |
| 141 |
<!-- kate: replace-tabs on; tab-width 2; indent-width 2; --> |