1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language>
<language name="FTL" version="6" kateversion="5.0" section="Markup" extensions="*.ftl" license="LGPLv2+" author="Radomir Svancer (svancer@gmail.com), Robert Kratky (kratky@rob.cz>), Matthias Mailänder (matthias.mailaender@vogella.com)">
<highlighting>
<contexts>
<context name="comment start" attribute="NormalText" lineEndContext="#stay">
<StringDetect attribute="Comment" context="comment end" String="<!--" beginRegion="Comment"/>
<StringDetect attribute="FTLComment" context="comment ending" String="<#--" beginRegion="FTLComment"/>
<RegExpr attribute="FTLKeyword" context="syntax start" String="<\s*\/?\s*[#@][a-zA-Z0-9_]*" />
<Detect2Chars attribute="FTLMark" context="variable end" char="$" char1="{" />
<RegExpr attribute="Keyword" context="logic end" String="<\s*\/?\s*[a-zA-Z0-9_]*" />
</context>
<context name="logic end" attribute="Identifier" lineEndContext="#stay">
<DetectChar attribute="Keyword" context="#pop" char=">"/>
<RegExpr attribute="NormalText" context="logic" String="\s*=\s*"/>
<StringDetect attribute="FTLComment" context="comment ending" String="<#--" beginRegion="FTLComment"/>
<RegExpr attribute="FTLKeyword" context="syntax start" String="<\s*\/?\s*[#@][a-zA-Z0-9_]*" />
<Detect2Chars attribute="FTLMark" context="variable end" char="$" char1="{" />
</context>
<context name="logic" attribute="Types" lineEndContext="#stay">
<RegExpr attribute="Types" context="#pop" String="\s*#?[a-zA-Z0-9]*" />
<DetectChar attribute="Types" context="logic start" char=""" />
</context>
<context name="logic start" attribute="Types" lineEndContext="#stay">
<DetectChar attribute="Types" context="#pop#pop" char=""" />
<StringDetect attribute="FTLComment" context="comment ending" String="<#--" beginRegion="FTLComment"/>
<RegExpr attribute="FTLKeyword" context="syntax start" String="<\s*\/?\s*[#@][a-zA-Z0-9_]*" />
<Detect2Chars attribute="FTLMark" context="variable end" char="$" char1="{" />
</context>
<context name="comment end" attribute="Comment" lineEndContext="#stay">
<DetectSpaces />
<StringDetect attribute="Comment" context="#pop" String="-->" endRegion="Comment"/>
<StringDetect attribute="FTLComment" context="comment ending" String="<#--" beginRegion="FTLComment"/>
<RegExpr attribute="FTLKeyword" context="syntax start" String="<\s*\/?\s*[#@][a-zA-Z0-9_]*" />
<Detect2Chars attribute="FTLMark" context="variable end" char="$" char1="{" />
<IncludeRules context="##Comments" />
</context>
<context name="comment ending" attribute="FTLComment" lineEndContext="#stay">
<StringDetect attribute="FTLComment" context="#pop" String="-->" endRegion="FTLComment"/>
<DetectSpaces />
<IncludeRules context="##Comments" />
</context>
<context name="syntax start" attribute="FTLKeyword" lineEndContext="#stay">
<DetectChar attribute="FTLKeyword" context="#pop" char=">"/>
<DetectChar attribute="FTLQuot" context="comment string" char=""" />
<DetectSpaces attribute="FTLIdentifier" context="syntax end"/>
</context>
<context name="comment string" attribute="FTLQuot" lineEndContext="#stay">
<DetectChar attribute="FTLQuot" context="#pop#pop" char=""" />
</context>
<context name="syntax end" attribute="FTLIdentifier" lineEndContext="#stay">
<DetectChar attribute="FTLKeyword" context="#pop#pop" char=">"/>
<DetectChar attribute="FTLQuot" context="comment string" char=""" />
</context>
<context name="variable end" attribute="FTLIdentifier" lineEndContext="#stay">
<DetectChar attribute="FTLMark" context="#pop" char="}"/>
<DetectChar attribute="FTLQuot" context="comment string" char=""" />
</context>
</contexts>
<itemDatas>
<itemData name="NormalText" defStyleNum="dsNormal"/>
<itemData name="Keyword" defStyleNum="dsKeyword"/>
<itemData name="Identifier" defStyleNum="dsOthers"/>
<itemData name="Types" defStyleNum="dsDataType"/>
<itemData name="Comment" defStyleNum="dsComment"/>
<itemData name="FTLComment" defStyleNum="dsDocumentation" bold="0" italic="1"/>
<itemData name="FTLKeyword" defStyleNum="dsKeyword" color="#0000cc" selColor="#00ff00" bold="1" italic="0"/>
<itemData name="FTLQuot" defStyleNum="dsOthers" color="#ff0044" selColor="#00ff00" bold="0" italic="0"/>
<itemData name="FTLIdentifier" defStyleNum="dsOthers" color="#0022bb" selColor="#00ff00" bold="0" italic="0"/>
<itemData name="FTLMark" defStyleNum="dsOthers" color="#0000cc" selColor="#00ff00" bold="1" italic="1"/>
</itemDatas>
</highlighting>
<general>
<comments>
<comment name="multiLine" start="<#--" end="-->" region="FTLComment" />
</comments>
<keywords casesensitive="0" />
</general>
</language>
<!-- kate: replace-tabs on; tab-width 2; indent-width 2; -->
|