Debian Codegraph @

data/syntax/ftl.xml

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