Warning, /frameworks/syntax-highlighting/data/syntax/hamlet.xml is written in an unsupported language. File is not indexed.
0001 <?xml version="1.0" encoding="UTF-8"?> 0002 <!DOCTYPE language 0003 [ 0004 <!-- names must start with a letter, ideogram or underscore. \w matches any 0005 word character *or* a number, hence the lookahead --> 0006 <!ENTITY name "(?![0-9])[\w_:][\w.:_-]*"> 0007 ]> 0008 <language name="Hamlet" version="6" kateversion="5.53" section="Markup" extensions="*.hamlet" author="Bastian Holst (bastianholst@gmx.de)" license="LGPL" indenter="haskell"> 0009 <highlighting> 0010 <contexts> 0011 <context attribute="Normal Text" lineEndContext="#pop" name="Normal Text" > 0012 <RegExpr attribute="Element" context="element" String="<&name;\b" /> 0013 <!-- A widget --> 0014 <Detect2Chars attribute="Code" context="Code" char="^" char1="{"/> 0015 <!-- Something implementing ToHtml --> 0016 <Detect2Chars attribute="Code" context="Code" char="#" char1="{"/> 0017 <!-- An URL --> 0018 <Detect2Chars attribute="Code" context="Code" char="@" char1="{"/> 0019 <!-- A Message --> 0020 <Detect2Chars attribute="Code" context="Code" char="_" char1="{"/> 0021 <DetectChar attribute="Logic" context="Logic" firstNonSpace="true" char="$"/> 0022 </context> 0023 0024 <context attribute="Element" lineEndContext="#stay" name="element" > 0025 <Detect2Chars attribute="Element" context="#pop" char="/" char1=">" /> 0026 <DetectChar attribute="Element" context="#pop" char=">" /> 0027 <RegExpr attribute="Attribute" context="Attribute" String="^&name;|\s+&name;" /> 0028 <RegExpr attribute="Class" context="#stay" String="\.&name;"/> 0029 <RegExpr attribute="Error" context="#stay" String="\S" /> 0030 </context> 0031 0032 <context name="Logic" lineEndContext="#pop" attribute="Normal Text"> 0033 <WordDetect attribute="Logic" context="Codeline" String="if"/> 0034 <WordDetect attribute="Logic" context="Codeline" String="elseif"/> 0035 <WordDetect attribute="Logic" context="Assignment" String="forall"/> 0036 <WordDetect attribute="Logic" context="Assignment" String="maybe"/> 0037 <WordDetect attribute="Logic" context="#stay" String="else"/> 0038 <WordDetect attribute="Logic" context="#stay" String="nothing"/> 0039 <RegExpr attribute="Error" context="#stay" String="\S" /> 0040 </context> 0041 0042 <context name="Code" attribute="Normal Text" lineEndContext="#stay"> 0043 <DetectChar attribute="Code" context="#pop" char="}"/> 0044 <IncludeRules context="##Haskell" /> 0045 </context> 0046 0047 <context name="Codeline" attribute="Normal Text" lineEndContext="#pop"> 0048 <IncludeRules context="##Haskell" /> 0049 </context> 0050 0051 <context name="Assignment" attribute="Normal Text" lineEndContext="#pop"> 0052 <Detect2Chars attribute="Assignment" context="Codeline" char="<" char1="-"/> 0053 <IncludeRules context="##Haskell" /> 0054 </context> 0055 0056 <context name="Attribute" attribute="Attribute" lineEndContext="#stay"> 0057 <DetectChar attribute="Attribute" context="Value" char="=" /> 0058 <DetectChar attribute="Element" context="#pop#pop" char=">"/> 0059 <RegExpr attribute="Error" context="#stay" String="\S" /> 0060 </context> 0061 0062 <context attribute="Value" lineEndContext="#stay" name="Value"> 0063 <DetectChar attribute="Value" context="Value DQ" char=""" /> 0064 <DetectChar attribute="Value" context="Value SQ" char="'" /> 0065 <Detect2Chars attribute="Code" context="Value Code" char="@" char1="{"/> 0066 <Detect2Chars attribute="Code" context="Value Code" char="#" char1="{"/> 0067 <RegExpr attribute="Value" context="#pop#pop" String="[^"'>\s]+"/> 0068 <RegExpr attribute="Error" context="#stay" String="\S" /> 0069 </context> 0070 0071 <context name="Value DQ" attribute="Value" lineEndContext="#stay"> 0072 <DetectChar attribute="Value" context="#pop#pop#pop" char=""" /> 0073 </context> 0074 0075 <context name="Value SQ" attribute="Value" lineEndContext="#stay"> 0076 <DetectChar attribute="Value" context="#pop#pop#pop" char="'" /> 0077 </context> 0078 0079 <context name="Value Code" attribute="Normal Text" lineEndContext="#stay"> 0080 <DetectChar attribute="Code" context="#pop#pop#pop" char="}"/> 0081 <IncludeRules context="##Haskell" /> 0082 </context> 0083 0084 </contexts> 0085 <itemDatas> 0086 <itemData name="Normal Text" defStyleNum="dsNormal" /> 0087 <itemData name="Element" defStyleNum="dsKeyword" /> 0088 <itemData name="Attribute" defStyleNum="dsOthers" spellChecking="false" /> 0089 <itemData name="Class" defStyleNum="dsString" spellChecking="false" /> 0090 <itemData name="Value" defStyleNum="dsString" spellChecking="false" /> 0091 <itemData name="Logic" defStyleNum="dsKeyword" spellChecking="false" /> 0092 <itemData name="Code" defStyleNum="dsKeyword" spellChecking="false" /> 0093 <itemData name="Error" defStyleNum="dsError" spellChecking="false" /> 0094 <itemData name="Assignment" defStyleNum="dsOthers" spellChecking="false" /> 0095 </itemDatas> 0096 </highlighting> 0097 <general> 0098 <keywords casesensitive="1"/> 0099 </general> 0100 </language> 0101 <!-- kate: replace-tabs on; tab-width 2; indent-width 2; -->