Changeset View
Changeset View
Standalone View
Standalone View
data/syntax/brightscript.xml
1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
---|---|---|---|---|---|
2 | <!DOCTYPE language SYSTEM "language.dtd"> | 2 | <!DOCTYPE language SYSTEM "language.dtd"> | ||
3 | <language | 3 | <language | ||
4 | name="BrightScript" | 4 | name="BrightScript" | ||
5 | section="Scripts" | 5 | section="Scripts" | ||
6 | extensions="*.brs" | 6 | extensions="*.brs" | ||
7 | version="3" | 7 | version="4" | ||
8 | kateversion="5.0" | 8 | kateversion="5.0" | ||
9 | author="Daniel Levin (dendy.ua@gmail.com)" | 9 | author="Daniel Levin (dendy.ua@gmail.com)" | ||
10 | license="MIT"> | 10 | license="MIT"> | ||
11 | 11 | | |||
12 | <highlighting> | 12 | <highlighting> | ||
13 | 13 | | |||
14 | 14 | | |||
15 | 15 | | |||
▲ Show 20 Lines • Show All 274 Lines • ▼ Show 20 Line(s) | 287 | <context name="function_code" attribute="g" lineEndContext="#stay"> | |||
290 | <keyword String="endfunction" context="#pop!function_solid_end" lookAhead="true"/> | 290 | <keyword String="endfunction" context="#pop!function_solid_end" lookAhead="true"/> | ||
291 | <IncludeRules context="@code"/> | 291 | <IncludeRules context="@code"/> | ||
292 | </context> | 292 | </context> | ||
293 | 293 | | |||
294 | <context name="function_solid_end" attribute="g" lineEndContext="#stay"> | 294 | <context name="function_solid_end" attribute="g" lineEndContext="#stay"> | ||
295 | <StringDetect String="end" insensitive="true" attribute="keyword" context="#pop!function_end"/> | 295 | <StringDetect String="end" insensitive="true" attribute="keyword" context="#pop!function_end"/> | ||
296 | </context> | 296 | </context> | ||
297 | 297 | | |||
298 | <context name="function_end" attribute="keyword" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> | 298 | <context name="function_end" attribute="keyword" lineEndContext="#pop#pop" fallthrough="true" fallthroughContext="#pop#pop"> | ||
299 | <DetectSpaces/> | 299 | <DetectSpaces/> | ||
300 | <keyword String="function" attribute="keyword" context="#pop#pop" endRegion="function"/> | 300 | <StringDetect String="function" insensitive="true" attribute="keyword" context="#pop#pop" endRegion="function"/> | ||
301 | </context> | 301 | </context> | ||
302 | 302 | | |||
303 | 303 | | |||
304 | <!-- sub is a function with void return type. --> | 304 | <!-- sub is a function with void return type. --> | ||
305 | <context name="@sub" attribute="g" lineEndContext="#stay"> | 305 | <context name="@sub" attribute="g" lineEndContext="#stay"> | ||
306 | <keyword String="sub" attribute="keyword" context="sub" beginRegion="sub"/> | 306 | <keyword String="sub" attribute="keyword" context="sub" beginRegion="sub"/> | ||
307 | </context> | 307 | </context> | ||
308 | 308 | | |||
Show All 29 Lines | 335 | <context name="sub_code" attribute="g" lineEndContext="#stay"> | |||
338 | <keyword String="endsub" context="#pop!sub_solid_end" lookAhead="true"/> | 338 | <keyword String="endsub" context="#pop!sub_solid_end" lookAhead="true"/> | ||
339 | <IncludeRules context="@code"/> | 339 | <IncludeRules context="@code"/> | ||
340 | </context> | 340 | </context> | ||
341 | 341 | | |||
342 | <context name="sub_solid_end" attribute="g" lineEndContext="#stay"> | 342 | <context name="sub_solid_end" attribute="g" lineEndContext="#stay"> | ||
343 | <StringDetect String="end" insensitive="true" attribute="keyword" context="#pop!sub_end"/> | 343 | <StringDetect String="end" insensitive="true" attribute="keyword" context="#pop!sub_end"/> | ||
344 | </context> | 344 | </context> | ||
345 | 345 | | |||
346 | <context name="sub_end" attribute="keyword" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop#pop"> | 346 | <context name="sub_end" attribute="keyword" lineEndContext="#pop#pop" fallthrough="true" fallthroughContext="#pop#pop"> | ||
347 | <DetectSpaces/> | 347 | <DetectSpaces/> | ||
348 | <keyword String="sub" attribute="keyword" context="#pop#pop" endRegion="sub"/> | 348 | <StringDetect String="sub" insensitive="true" attribute="keyword" context="#pop#pop" endRegion="sub"/> | ||
349 | </context> | 349 | </context> | ||
350 | 350 | | |||
351 | 351 | | |||
352 | <!-- @code represents execution body, including function and sub contents. | 352 | <!-- @code represents execution body, including function and sub contents. | ||
353 | --> | 353 | --> | ||
354 | <context name="@code" attribute="g" lineEndContext="#stay"> | 354 | <context name="@code" attribute="g" lineEndContext="#stay"> | ||
355 | <DetectSpaces/> | 355 | <DetectSpaces/> | ||
356 | <IncludeRules context="@macro"/> | 356 | <IncludeRules context="@macro"/> | ||
▲ Show 20 Lines • Show All 437 Lines • Show Last 20 Lines |