File: robot.xml

package info (click to toggle)
ksyntax-highlighting 5.116.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 44,640 kB
  • sloc: xml: 186,656; cpp: 12,164; python: 1,202; sh: 898; perl: 515; ruby: 406; pascal: 393; php: 149; javascript: 140; jsp: 132; lisp: 131; haskell: 124; ansic: 107; f90: 94; cobol: 81; makefile: 78; ml: 75; yacc: 71; csh: 62; erlang: 54; sql: 51; objc: 37; java: 32; awk: 31; asm: 30; tcl: 29; fortran: 18; cs: 10
file content (200 lines) | stat: -rw-r--r-- 11,190 bytes parent folder | download
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language>
<language name="Robot"
          version="1"
          kateversion="5.79"
          section="Scripts"
          extensions="*.robot"
          indenter="python"
          author="Akseli Lahtinen (akselmo@akselmo.dev)"
          license="MIT">
    <highlighting>
        <list name="SettingSectionSettings">
            <item>Library</item>
            <item>Resource</item>
            <item>Variables</item>
            <item>Metadata</item>
            <item>Suite Setup</item>
            <item>Suite Teardown</item>
            <item>Test Tags</item>
            <item>Force Tags</item>
            <item>Keyword Tags</item>
            <item>Test Setup</item>
            <item>Test Teardown</item>
            <item>Test Template</item>
            <item>Test Timeout</item>
            <item>Task Setup</item>
            <item>Default Tags</item>
            <item>Task Teardown</item>
            <item>Task Template</item>
            <item>Task Timeout</item>
<!--
    Documentation will go to its own regexp since its a comment
-->
        </list>

        <list name="KeywordSectionSettings">
            <item>Tags</item>
            <item>Setup</item>
            <item>Teardown</item>
            <item>Template</item>
            <item>Arguments</item>
            <item>Return</item>
            <item>Timeout</item>
<!--
    Documentation will go to its own regexp since its a comment
-->
        </list>

        <list name="ControlOperators">
            <item>IF</item>
            <item>ELSE</item>
            <item>END</item>
            <item>RETURN</item>
            <item>WHILE</item>
            <item>FOR</item>
            <item>BREAK</item>
            <item>CONTINUE</item>
            <item>TRY</item>
            <item>EXCEPT</item>
            <item>FINALLY</item>
            <item>IN</item>
            <item>ENUMERATE</item>
            <item>RANGE</item>
            <item>ZIP</item>
        </list>
        <contexts>
            <context attribute="Normal Text" lineEndContext="#stay" name="Normal Text" >
                <StringDetect firstNonSpace="1" attribute="Setting" context="Multi-Line Comment" String="Documentation" beginRegion="RegionComment"/>
                <RegExpr firstNonSpace="0" attribute="Section" context="Settings Section" String="\*{3}\s{0,1}Settings\s{0,1}\*{3}"/>
                <RegExpr firstNonSpace="0" attribute="Section" context="#stay" String="\*{3}\s{0,1}Variables\s{0,1}\*{3}"/>
                <RegExpr firstNonSpace="0" attribute="Section" context="Test Cases Section" String="\*{3}\s{0,1}Test Cases\s{0,1}\*{3}"/>
                <RegExpr firstNonSpace="0" attribute="Section" context="Keywords Section" String="\*{3}\s{0,1}Keywords\s{0,1}\*{3}"/>
                <RegExpr firstNonSpace="0" attribute="Section" context="Tasks Section" String="\*{3}\s{0,1}Tasks\s{0,1}\*{3}"/>
                <RegExpr firstNonSpace="0" attribute="Section" context="Comments Section" String="\*{3}\s{0,1}Comments\s{0,1}\*{3}"/>
                <DetectChar attribute="Comment" char="#" context="Comment"/>
                <RegExpr firstNonSpace="0" attribute="Symbol" context="#stay" String="[\[\]=\(\)\.\|]"/>
                <RegExpr firstNonSpace="0" attribute="Symbol" context="KeywordSettings" String="\s{2,}\["/>
                <RegExpr firstNonSpace="0" attribute="Variable" context="#pop" String="[\$@&#38;]\{\w*\}"/>
                <RegExpr firstNonSpace="0" attribute="Variable" context="#stay" String="[\$@&#38;]\w*" />
                <RegExpr firstNonSpace="0" attribute="Setting" context="#stay" String=".*BuiltIn\." />
                <AnyChar attribute="String" context="String" String="&quot;&apos;" />
                <keyword attribute="Control Flow" context="#pop" String="ControlOperators"/>
            </context>


            <context name="Comments Section" attribute="Comment" lineEndContext="#stay">
                <RegExpr firstNonSpace="1" attribute="Section" context="#pop" String="^[\*].*$" lookAhead="true"/>
            </context>

            <context name="Comment" attribute="Comment" lineEndContext="#pop">
                <IncludeRules context="##Comments" />
            </context>

            <context name="Multi-Line Comment" attribute="Comment" lineEndContext="#stay">
                <RegExpr firstNonSpace="1" attribute="Comment" context="#pop" lookAhead="true" String="^\s{0,}[^\.]" endRegion="RegionComment"/>
            </context>

            <context name="Indented Multi-Line Comment" attribute="Comment" lineEndContext="#stay">
                <AnyChar String="[]" attribute="Symbol" context="#stay" />
                <RegExpr firstNonSpace="1" attribute="Comment" context="#stay" String="^\s{0,}[\.]{3}"/>
                <RegExpr firstNonSpace="1" attribute="Comment" context="#pop" lookAhead="true" String="^\s{0,}[^\.]"/>
            </context>

            <context name="Settings Section" attribute="Normal Text" lineEndContext="#stay">
                <StringDetect firstNonSpace="0" attribute="Setting" context="Multi-Line Comment" String="Documentation" beginRegion="RegionComment"/>
                <IncludeRules context="SettingsValues" />
                <RegExpr firstNonSpace="1" attribute="Section" context="#pop" String="^[\*].*$" lookAhead="true"/>
                <DetectChar attribute="Comment" char="#" context="Comment"/>
                <RegExpr firstNonSpace="0" attribute="Symbol" context="#stay" String="[\[\]=\(\)\.\|]"/>
                <RegExpr firstNonSpace="0" attribute="Variable" context="#stay" String="[\$@&#38;]\{\w*\}"/>
                <RegExpr firstNonSpace="0" attribute="Setting" context="#stay" String=".*BuiltIn\." />
                <AnyChar attribute="String" context="String" String="&quot;&apos;" />
            </context>

            <context name="Test Cases Section" attribute="Normal Text" lineEndContext="#stay">
                <RegExpr firstNonSpace="1" attribute="Test Case" context="Test Case With Variable" String="^[\w]" />
                <RegExpr firstNonSpace="1" attribute="Section" context="#pop" String="^[\*].*$" lookAhead="true"/>
                <IncludeRules context="Codeblock" />
            </context>

            <context name="Tasks Section" attribute="Normal Text" lineEndContext="#stay">
                <RegExpr firstNonSpace="1" attribute="Task" context="Task With Variable" String="^[\w]" />
                <RegExpr firstNonSpace="1" attribute="Section" context="#pop" String="^[\*].*$" lookAhead="true"/>
                <IncludeRules context="Codeblock" />
            </context>

            <context name="Keywords Section" attribute="Normal Text" lineEndContext="#stay">
                <RegExpr firstNonSpace="1" attribute="Keyword" context="Keyword With Variable" String="^[\w]" />
                <RegExpr firstNonSpace="1" attribute="Section" context="#pop" String="^[\*].*$" lookAhead="true"/>
                <IncludeRules context="Codeblock" />
            </context>

            <context name="SettingsValues" attribute="Setting" lineEndContext="#pop">
                <RegExpr firstNonSpace="1" attribute="Setting" String="^(Library|Resource|Variables|Metadata|Suite Setup|Suite Teardown|Test Tags|Force Tags|Keyword Tags|Test Setup|Test Teardown|Test Template|Test Timeout|Task Setup|Default Tags|Task Teardown|Task Template|Task Timeout) {0,}" context="#stay"/>
            </context>

            <context name="KeywordSettings" attribute="Normal Text" lineEndContext="#pop">
                <DetectChar char="[" attribute="Symbol" context="#stay" />
                <RegExpr firstNonSpace="0" attribute="Variable" context="#stay" String="[\$@&#38;]\{{0,1}\w*\}{0,1}"/>
                <RegExpr firstNonSpace="0" attribute="Symbol" context="StringAfterKeywordSettings" String="\]\s[^\$]([\w ]*)$" lookAhead="true"/>
                <keyword attribute="Setting" context="#stay" String="KeywordSectionSettings"/>
                <StringDetect firstNonSpace="0" attribute="Setting" context="Indented Multi-Line Comment" String="Documentation" insensitive="true"/>
                <DetectChar char="]" attribute="Symbol" context="#pop" />
            </context>

            <context name="Codeblock" attribute="Normal Text" lineEndContext="#stay">
                <keyword attribute="Control Flow" context="#stay" String="ControlOperators" />
                <DetectChar attribute="Comment" char="#" context="Comment"/>
                <RegExpr firstNonSpace="0" attribute="Symbol" context="#stay" String="[\[\]=\(\)\.]"/>
                <RegExpr firstNonSpace="0" attribute="Symbol" context="KeywordSettings" String="\s{2,}\["/>
                <RegExpr firstNonSpace="0" attribute="Variable" context="#stay" String="[\$@&#38;]\{{0,1}\w*\}{0,1}"/>
                <AnyChar attribute="String" context="String" String="&quot;&apos;" />
            </context>

            <context name="StringAfterKeywordSettings" attribute="Symbol" lineEndContext="#stay">
                <StringDetect context="#stay" attribute="String" String="%1" dynamic="true"/>
                <RegExpr firstNonSpace="1" attribute="String" context="#stay" String="^\s{0,}[\.]{3}.*$"/>
                <RegExpr firstNonSpace="1" attribute="String" context="#pop" lookAhead="true" String="^\s{0,}[^\.]"/>
            </context>

            <context name="String" attribute="String" lineEndContext="#pop">
                <AnyChar attribute="String" context="#pop" String="&quot;&apos;"/>
            </context>

            <context name="Test Case With Variable" attribute="Test Case" lineEndContext="#pop">
                <RangeDetect char="$" char1="}" attribute="Variable" context="#stay" />
            </context>

            <context name="Keyword With Variable" attribute="Keyword" lineEndContext="#pop">
                <RangeDetect char="$" char1="}" attribute="Variable" context="#stay" />
            </context>

            <context name="Task With Variable" attribute="Task" lineEndContext="#pop">
                <RangeDetect char="$" char1="}" attribute="Variable" context="#stay" />
            </context>

        </contexts>
        <itemDatas>
            <itemData name="Normal Text" defStyleNum="dsNormal" />
            <itemData name="Setting" defStyleNum="dsBuiltIn" />
            <itemData name="Test Case" defStyleNum="dsFunction" />
            <itemData name="Keyword" defStyleNum="dsKeyword" />
            <itemData name="Task" defStyleNum="dsExtension" />
            <itemData name="String" defStyleNum="dsString" />
            <itemData name="Section" defStyleNum="dsSpecialString" />
            <itemData name="Variable" defStyleNum="dsVariable" />
            <itemData name="Control Flow" defStyleNum="dsControlFlow" />
            <itemData name="Comment" defStyleNum="dsComment" />
            <itemData name="Symbol" defStyleNum="dsOperator" />
        </itemDatas>
    </highlighting>

    <general>
        <comments>
            <comment name="singleLine" start="#"/>
        </comments>
        <keywords casesensitive="1"/>
        <folding indentationsensitive="1"/>
    </general>
</language>