Damson/assets/syntax/brightscript.xml
astar76 11c1a7808b Build the syntax definitions into the app
Highlighting relied on the syntax-highlighting package, so removing it
left every file uncoloured. The 462 definitions now live in assets/syntax
and are compressed into the binary at build time, unpacked per language
when used. User .xml files still add to or replace them, and the licence
each file declares is recorded in assets/syntax/LICENSES.md.

Also moves files to the trash without needing gio.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 20:35:27 -06:00

1 line
No EOL
25 KiB
XML

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="BrightScript" section="Scripts" extensions="*.brs" version="11" kateversion="5.62" author="Daniel Levin ([email protected])" license="MIT"><highlighting><list name="library"><item>library</item></list><list name="function"><item>function</item></list><list name="endfunction"><item>endfunction</item></list><list name="sub"><item>sub</item></list><list name="endsub"><item>endsub</item></list><list name="as"><item>as</item></list><list name="exit"><item>exit</item></list><list name="if"><item>if</item></list><list name="endif"><item>endif</item></list><list name="then"><item>then</item></list><list name="else"><item>else</item></list><list name="elseif"><item>elseif</item></list><list name="while"><item>while</item></list><list name="endwhile"><item>endwhile</item></list><list name="exitwhile"><item>exitwhile</item></list><list name="for"><item>for</item></list><list name="endfor"><item>endfor</item></list><list name="each"><item>each</item></list><list name="in"><item>in</item></list><list name="to"><item>to</item></list><list name="step"><item>step</item></list><list name="next"><item>next</item></list><list name="print"><item>print</item></list><list name="return"><item>return</item></list><list name="dim"><item>dim</item></list><list name="stop"><item>stop</item></list><list name="goto"><item>goto</item></list><list name="try"><item>try</item></list><list name="endtry"><item>endtry</item></list><list name="catch"><item>catch</item></list><list name="throw"><item>throw</item></list><list name="m"><item>m</item></list><list name="top"><item>global</item><item>top</item></list><list name="end_of_scope"><item>end</item><item>exit</item><item>then</item></list><list name="unary"><item>not</item></list><list name="builtin_functions"><item>Box</item><item>CreateObject</item><item>Eval</item><item>GetGlobalAA</item><item>GetLastRunCompileError</item><item>GetLastRunRuntimeError</item><item>ObjFun</item><item>Run</item><item>Type</item><item>pos</item><item>tab</item></list><list name="utility_functions"><item>CopyFile</item><item>CreateDirectory</item><item>DeleteDirectory</item><item>DeleteFile</item><item>FindMemberFunction</item><item>FormatDrive</item><item>FormatJson</item><item>GetInterface</item><item>ListDir</item><item>MatchFiles</item><item>MoveFile</item><item>ParseJson</item><item>ReadAsciiFile</item><item>RebootSystem</item><item>RunGarbageCollector</item><item>Sleep</item><item>StrToI</item><item>Tr</item><item>UpTime</item><item>Wait</item><item>WriteAsciiFile</item></list><list name="string_functions"><item>Asc</item><item>Chr</item><item>Instr</item><item>LCase</item><item>Left</item><item>Len</item><item>Mid</item><item>Str</item><item>StrI</item><item>String</item><item>StringI</item><item>Substitute</item><item>UCase</item><item>Val</item></list><list name="math_functions"><item>Abs</item><item>Atn</item><item>Cdbl</item><item>Cint</item><item>Cos</item><item>Csng</item><item>Exp</item><item>Fix</item><item>Int</item><item>Log</item><item>Rnd</item><item>Sgn</item><item>Sin</item><item>Sqr</item><item>Tan</item></list><list name="comments"><item>rem</item></list><list name="types"><item>boolean</item><item>double</item><item>dynamic</item><item>float</item><item>function</item><item>integer</item><item>interface</item><item>invalid</item><item>longinteger</item><item>object</item><item>string</item><item>void</item></list><list name="constants"><item>LINE_NUM</item><item>false</item><item>invalid</item><item>true</item></list><contexts><context name="global" attribute="g"><DetectSpaces/><keyword String="library" attribute="import" context="library"/><IncludeRules context="@comment"/><IncludeRules context="@macro"/><IncludeRules context="@function"/><IncludeRules context="@sub"/></context><context name="@comment" attribute="g"><DetectSpaces/><DetectChar char="'" attribute="comment" context="comment"/><keyword String="comments" attribute="comment" context="comment"/></context><context name="rvalue" attribute="g" fallthroughContext="#pop" lineEndContext="#pop"><DetectSpaces/><AnyChar String="-+" attribute="unary"/><IncludeRules context="@comment"/><IncludeRules context="@function"/><IncludeRules context="@sub"/><keyword String="unary" attribute="unary"/><keyword String="end_of_scope" context="#pop#pop" lookAhead="1"/><DetectChar char='"' attribute="string" context="#pop!string"/><DetectChar char="[" attribute="operator" context="#pop!array"/><DetectChar char="(" attribute="scope" context="#pop!rvalue_scope"/><DetectChar char="{" attribute="operator" context="#pop!object"/><keyword String="constants" attribute="constant" context="#pop!rvalue_operator"/><RegExpr String="[-+]?[0-9]*\.[0-9]" context="#pop!float" lookAhead="1"/><RegExpr String="[-+]?[0-9]" context="#pop!int" lookAhead="1"/><StringDetect String="&amp;h" attribute="dec" context="#pop!hex" insensitive="1"/><keyword String="m" attribute="m" context="#pop!rvalue_m_dot"/><IncludeRules context="@rvalue_builtin_functions"/><IncludeRules context="@rvalue_library_functions"/><IncludeRules context="@rvalue_dot"/></context><context name="rvalue_operator" attribute="g" fallthroughContext="#pop!rvalue_end" lineEndContext="#pop"><DetectSpaces/><AnyChar String=".@" attribute="operator" context="#pop!rvalue_dot"/><IncludeRules context="@rvalue_ops"/></context><context name="lvalue_operator" attribute="g" fallthroughContext="#pop" lineEndContext="#pop"><DetectSpaces/><DetectChar char="." attribute="operator" context="#pop!lvalue_exp"/><IncludeRules context="@lvalue_ops"/></context><context name="arg_as_type" attribute="g" fallthroughContext="#pop"><DetectSpaces/><DetectIdentifier attribute="var" context="#pop!arg_params"/></context><context name="function_code" attribute="g"><DetectSpaces/><RegExpr String="end\s+function" context="#pop!function_solid_end" insensitive="1" lookAhead="1"/><keyword String="endfunction" context="#pop!function_solid_end" lookAhead="1"/><IncludeRules context="@code"/></context><context name="lvalue" attribute="g" fallthroughContext="#pop!lvalue_exp" lineEndContext="#pop"><DetectSpaces/><keyword String="m" attribute="m" context="#pop!lvalue_m_dot"/><IncludeRules context="@lvalue_builtin_functions"/><IncludeRules context="@lvalue_library_functions"/><IncludeRules context="@comment"/></context><context name="sub_code" attribute="g"><DetectSpaces/><RegExpr String="end\s+sub" context="#pop!sub_solid_end" insensitive="1" lookAhead="1"/><keyword String="endsub" context="#pop!sub_solid_end" lookAhead="1"/><IncludeRules context="@code"/></context><context name="@code" attribute="g"><IncludeRules context="@macro"/><IncludeRules context="@comment"/><IncludeRules context="@code_end"/><keyword String="print" attribute="print" context="print"/><keyword String="goto" attribute="keyword" context="goto"/><keyword String="return" attribute="control" context="rvalue"/><keyword String="stop" attribute="keyword"/><keyword String="dim" attribute="keyword" context="dim"/><keyword String="if" attribute="control" context="rvalue"/><keyword String="then" attribute="control"/><keyword String="else" attribute="control"/><keyword String="elseif" attribute="control"/><keyword String="endif" attribute="control"/><keyword String="while" attribute="control" context="rvalue"/><keyword String="endwhile" attribute="control"/><keyword String="exitwhile" attribute="control"/><keyword String="for" attribute="control" context="for"/><keyword String="endfor" attribute="control"/><keyword String="next" attribute="control"/><keyword String="exit" attribute="control" context="exit"/><keyword String="try" context="try_test" lookAhead="1"/><keyword String="throw" attribute="keyword" context="rvalue"/><DetectChar char=":" context="line_break" lookAhead="1"/><DetectIdentifier context="lvalue" lookAhead="1"/></context><context name="array" attribute="g" fallthroughContext="rvalue"><DetectSpaces/><DetectChar char="," attribute="coma"/><DetectChar char="]" attribute="operator" context="#pop!rvalue_operator"/></context><context name="as_type" attribute="g"><keyword String="as" attribute="keyword" context="as_type_value"/></context><context name="lvalue_call_open_brace" attribute="g"><IncludeRules context="@lvalue_call_open_brace"/></context><context name="lvalue_exp" attribute="g" lineEndContext="#pop"><DetectSpaces/><RegExpr String="[a-zA-Z_][a-zA-Z0-1_]*\s*\(" context="#pop!lvalue_call" lookAhead="1"/><RegExpr String="[a-zA-Z_][a-zA-Z0-1_]*:" attribute="label" context="#pop"/><DetectIdentifier context="#pop!lvalue_var" lookAhead="1"/></context><context name="lvalue_library_function" attribute="g" fallthroughContext="#pop!lvalue_var" lineEndContext="#pop"><RegExpr String="[a-zA-Z_][a-zA-Z0-1_]*\s*\(" context="#pop!lvalue_library_call" lookAhead="1"/></context><context name="postfix_delimiter" attribute="g" fallthroughContext="#pop#pop" lineEndContext="#pop#pop"><RegExpr String="[\s\W]" context="#pop#pop!rvalue_operator" lookAhead="1"/></context><context name="rvalue_call_open_brace" attribute="g"><IncludeRules context="@rvalue_call_open_brace"/></context><context name="rvalue_library_function" attribute="g" fallthroughContext="#pop!rvalue_var" lineEndContext="#pop"><RegExpr String="[a-zA-Z_][a-zA-Z0-1_]*\s*\(" context="#pop!rvalue_library_call" lookAhead="1"/></context><context name="@function" attribute="g"><keyword String="function" attribute="keyword" context="function" beginRegion="function"/></context><context name="@line_break" attribute="g"><DetectChar char=":" attribute="line_break" context="#pop"/></context><context name="@lvalue_call_open_brace" attribute="g"><DetectChar char="(" attribute="scope" context="lvalue_call_args"/></context><context name="@lvalue_ops" attribute="g"><IncludeRules context="@lvalue_call_open_brace"/><DetectChar char="[" attribute="operator" context="lvalue_array"/><RegExpr String="(=|\+=|\-=|\*=|/=|\\=|&lt;&lt;=|>>=)" attribute="assign" context="#pop!rvalue"/></context><context name="@macro" attribute="g"><DetectChar char="#" attribute="macro" context="macro_line"/></context><context name="@rvalue_call_open_brace" attribute="g"><DetectChar char="(" attribute="scope" context="rvalue_call_args"/></context><context name="@rvalue_dot" attribute="g"><RegExpr String="[a-zA-Z_][a-zA-Z0-1_]*\s*\(" context="#pop!rvalue_call" lookAhead="1"/><DetectIdentifier context="#pop!rvalue_var" lookAhead="1"/></context><context name="@rvalue_ops" attribute="g"><IncludeRules context="@rvalue_call_open_brace"/><DetectChar char="[" attribute="operator" context="#pop!array"/></context><context name="@sub" attribute="g"><keyword String="sub" attribute="keyword" context="sub" beginRegion="sub"/></context><context name="comment" attribute="comment" lineEndContext="#pop"><IncludeRules context="##Comments"/></context><context name="func_open_brace" attribute="g" fallthroughContext="#pop!function_code"><DetectSpaces/><DetectChar char="(" attribute="scope" context="func_args"/></context><context name="function_solid_end" attribute="g"><StringDetect String="end" attribute="keyword" context="#pop!function_end" insensitive="1"/></context><context name="inline_call" attribute="g" lineEndContext="#pop"><DetectSpaces/><DetectChar char="(" attribute="scope" context="#pop!lvalue_call_args"/></context><context name="lvalue_call_args" attribute="g" fallthroughContext="rvalue"><DetectSpaces/><DetectChar char=")" attribute="scope" context="#pop#pop!lvalue_operator"/><DetectChar char="," attribute="coma"/></context><context name="lvalue_var" attribute="g" fallthroughContext="#pop" lineEndContext="#pop"><DetectIdentifier attribute="var" context="#pop!lvalue_var_postfix"/></context><context name="object_param_colon" attribute="g" lineEndContext="#pop"><DetectSpaces/><IncludeRules context="@comment"/><DetectChar char=":" attribute="operator" context="#pop!rvalue"/></context><context name="rvalue_dot" attribute="g"><IncludeRules context="@rvalue_dot"/></context><context name="rvalue_end" attribute="g" fallthroughContext="#pop" lineEndContext="#pop"><DetectSpaces/><RegExpr String="=|&lt;>|&lt;&lt;|>>|&lt;=|>=|&lt;|>|\^|\-|\+|\*|\/|\\|(and|or|mod)(?=\W)" attribute="binary" context="#pop!rvalue" insensitive="1"/></context><context name="rvalue_var" attribute="g" fallthroughContext="#pop"><DetectIdentifier attribute="var" context="#pop!rvalue_var_postfix"/></context><context name="string" attribute="string" lineEndContext="#pop#pop"><DetectChar char='"' attribute="string" context="#pop!rvalue_operator"/></context><context name="sub_open_brace" attribute="g" fallthroughContext="#pop!sub_code"><DetectSpaces/><DetectChar char="(" attribute="scope" context="sub_args"/></context><context name="sub_solid_end" attribute="g"><StringDetect String="end" attribute="keyword" context="#pop!sub_end" insensitive="1"/></context><context name="@code_end" attribute="g"><RegExpr String="end\s+(if|for|while)" attribute="control" insensitive="1"/></context><context name="@lvalue_builtin_functions" attribute="g"><keyword String="builtin_functions" context="#pop!lvalue_builtin_function" lookAhead="1"/></context><context name="@lvalue_library_functions" attribute="g"><keyword String="utility_functions" context="#pop!lvalue_library_function" lookAhead="1"/><keyword String="string_functions" context="#pop!lvalue_library_function" lookAhead="1"/><keyword String="math_functions" context="#pop!lvalue_library_function" lookAhead="1"/></context><context name="@rvalue_builtin_functions" attribute="g"><keyword String="builtin_functions" context="#pop!rvalue_builtin_function" lookAhead="1"/></context><context name="@rvalue_library_functions" attribute="g"><keyword String="utility_functions" context="#pop!rvalue_library_function" lookAhead="1"/><keyword String="string_functions" context="#pop!rvalue_library_function" lookAhead="1"/><keyword String="math_functions" context="#pop!rvalue_library_function" lookAhead="1"/></context><context name="arg_params" attribute="g" fallthroughContext="#pop"><DetectSpaces/><keyword String="as" context="as_type" lookAhead="1"/><DetectChar char="=" attribute="assign" context="rvalue"/></context><context name="as_type_value" attribute="g"><keyword String="types" attribute="type" context="#pop#pop"/><DetectIdentifier attribute="invalid" context="#pop#pop"/></context><context name="catch_expr" attribute="g" fallthroughContext="#pop" lineEndContext="#pop"><keyword String="catch" attribute="keyword" context="#pop!catch_var"/></context><context name="catch_test" attribute="g" fallthroughContext="#pop!lvalue" lineEndContext="#pop"><RegExpr String="catch\s*[a-zA-Z_]" attribute="control" context="#pop!catch_expr" lookAhead="1"/></context><context name="catch_var" attribute="g" fallthroughContext="#pop" lineEndContext="#pop"><DetectSpaces/><DetectIdentifier attribute="var" context="#pop"/></context><context name="dim" attribute="g" lineEndContext="#pop"><DetectSpaces/><DetectIdentifier attribute="var" context="#pop!dim_array"/><IncludeRules context="@comment"/></context><context name="dim_array" attribute="g" lineEndContext="#pop"><DetectSpaces/><DetectChar char="[" attribute="operator" context="#pop!array"/><IncludeRules context="@comment"/></context><context name="exit" attribute="g" lineEndContext="#pop"><DetectSpaces/><keyword String="for" attribute="control" context="#pop"/><keyword String="while" attribute="control" context="#pop"/><IncludeRules context="@comment"/></context><context name="float" attribute="float" fallthroughContext="#pop" lineEndContext="#pop"><RegExpr String="[-+]?[0-9]*\.[0-9]+([eE][-+]?[0-9]+)?[!#]?" attribute="float" context="postfix_delimiter"/></context><context name="for" attribute="g" fallthroughContext="#pop!for_var" lineEndContext="#pop"><DetectSpaces/><keyword String="each" attribute="control" context="#pop!for_each"/><IncludeRules context="@comment"/></context><context name="for_each" attribute="g" lineEndContext="#pop"><DetectSpaces/><DetectIdentifier attribute="var" context="#pop!for_in"/><IncludeRules context="@comment"/></context><context name="for_in" attribute="g" lineEndContext="#pop"><DetectSpaces/><keyword String="in" attribute="control" context="#pop!rvalue"/><IncludeRules context="@comment"/></context><context name="for_to" attribute="g" fallthroughContext="rvalue" lineEndContext="#pop"><DetectSpaces/><keyword String="step" attribute="control" context="#pop!rvalue"/></context><context name="for_var" attribute="g" fallthroughContext="lvalue" lineEndContext="#pop"><DetectSpaces/><keyword String="to" attribute="control" context="#pop!for_to"/><IncludeRules context="@comment"/></context><context name="func_args" attribute="g" fallthroughContext="#pop#pop!function_code"><DetectSpaces/><DetectIdentifier context="arg_as_type" lookAhead="1"/><DetectChar char=")" attribute="scope" context="#pop#pop!function_ret"/><DetectChar char="," attribute="coma" context="arg_as_type"/></context><context name="function" attribute="g" fallthroughContext="function_name"/><context name="function_end" attribute="keyword" fallthroughContext="#pop#pop" lineEndContext="#pop#pop"><DetectSpaces/><StringDetect String="function" attribute="keyword" context="#pop#pop!inline_call" endRegion="function" insensitive="1"/></context><context name="function_name" attribute="g" fallthroughContext="#pop!function_code"><DetectSpaces/><DetectIdentifier attribute="func" context="#pop!func_open_brace"/><DetectChar char="(" context="#pop!func_open_brace" lookAhead="1"/></context><context name="function_ret" attribute="g" fallthroughContext="#pop!function_code"><DetectChar char=" "/><keyword String="as" context="as_type" lookAhead="1"/></context><context name="goto" attribute="g" lineEndContext="#pop"><DetectSpaces/><DetectIdentifier attribute="label" context="#pop"/></context><context name="hex" attribute="invalid" fallthroughContext="#pop" lineEndContext="#pop"><RegExpr String="[0-9a-fA-F]+" attribute="dec" context="#pop" insensitive="1"/></context><context name="int" attribute="dec" fallthroughContext="#pop" lineEndContext="#pop"><RegExpr String="[-+]?[0-9]*[!#]" attribute="float" context="postfix_delimiter"/><RegExpr String="[-+]?[0-9]*[%&amp;]?" attribute="dec" context="postfix_delimiter"/></context><context name="library" attribute="import" lineEndContext="#pop"><DetectSpaces/><DetectChar char='"' attribute="string" context="#pop!string"/></context><context name="line_break" attribute="g"><IncludeRules context="@line_break"/></context><context name="lvalue_array" attribute="g" fallthroughContext="rvalue"><DetectSpaces/><DetectChar char="," attribute="coma"/><DetectChar char="]" attribute="operator" context="#pop!lvalue_operator"/></context><context name="lvalue_builtin_call" attribute="g" lineEndContext="#pop"><DetectIdentifier attribute="builtin_func" context="#pop!lvalue_call_open_brace"/></context><context name="lvalue_builtin_function" attribute="g" lineEndContext="#pop"><RegExpr String="[a-zA-Z_][a-zA-Z0-1_]*\s*\(" context="#pop!lvalue_builtin_call" lookAhead="1"/><DetectIdentifier attribute="invalid" context="#pop"/></context><context name="lvalue_call" attribute="g"><DetectIdentifier attribute="func" context="#pop!lvalue_call_open_brace"/></context><context name="lvalue_library_call" attribute="g" lineEndContext="#pop"><DetectIdentifier attribute="library_func" context="#pop!lvalue_call_open_brace"/></context><context name="lvalue_m_dot" attribute="g" lineEndContext="#pop"><DetectSpaces/><DetectChar char="." attribute="operator" context="#pop!lvalue_top"/><IncludeRules context="@comment"/><IncludeRules context="@lvalue_ops"/></context><context name="lvalue_top" attribute="g" lineEndContext="#pop"><DetectSpaces/><keyword String="top" attribute="top" context="#pop!lvalue_operator"/><DetectIdentifier context="#pop!lvalue_exp" lookAhead="1"/><IncludeRules context="@comment"/></context><context name="lvalue_var_postfix" attribute="g" fallthroughContext="#pop!lvalue_operator" lineEndContext="#pop"><AnyChar String="$%&amp;!#" attribute="var" context="#pop!lvalue_operator"/></context><context name="macro_line" attribute="macro" lineEndContext="#pop"><IncludeRules context="@comment"/></context><context name="object" attribute="g"><DetectSpaces/><IncludeRules context="@comment"/><DetectChar char="," attribute="coma"/><DetectChar char="}" attribute="operator" context="#pop!rvalue_operator"/><DetectChar char='"' attribute="var" context="object_param_string"/><DetectIdentifier attribute="var" context="object_param_colon"/></context><context name="object_param_string" attribute="var" lineEndContext="#pop"><DetectChar char='"' attribute="var" context="#pop!object_param_colon"/></context><context name="print" attribute="g" fallthroughContext="rvalue" lineEndContext="#pop"><AnyChar String=",;" attribute="coma"/><IncludeRules context="@line_break"/></context><context name="rvalue_builtin_call" attribute="g" lineEndContext="#pop"><DetectIdentifier attribute="builtin_func" context="#pop!rvalue_call_open_brace"/></context><context name="rvalue_builtin_function" attribute="g" lineEndContext="#pop"><RegExpr String="[a-zA-Z_][a-zA-Z0-1_]*\s*\(" context="#pop!rvalue_builtin_call" lookAhead="1"/><DetectIdentifier attribute="invalid" context="#pop"/></context><context name="rvalue_call" attribute="g"><DetectIdentifier attribute="func" context="#pop!rvalue_call_open_brace"/></context><context name="rvalue_call_args" attribute="g" fallthroughContext="rvalue"><DetectSpaces/><DetectChar char=")" attribute="scope" context="#pop#pop!rvalue_operator"/><DetectChar char="," attribute="coma"/></context><context name="rvalue_library_call" attribute="g" lineEndContext="#pop"><DetectIdentifier attribute="library_func" context="#pop!rvalue_call_open_brace"/></context><context name="rvalue_m_dot" attribute="g" fallthroughContext="#pop!rvalue_end" lineEndContext="#pop"><DetectSpaces/><DetectChar char="." attribute="operator" context="#pop!rvalue_top"/><IncludeRules context="@comment"/><IncludeRules context="@rvalue_ops"/></context><context name="rvalue_scope" attribute="g" fallthroughContext="rvalue"><DetectSpaces/><DetectChar char=")" attribute="scope" context="#pop!rvalue_operator"/></context><context name="rvalue_top" attribute="g" lineEndContext="#pop"><DetectSpaces/><keyword String="top" attribute="top" context="#pop!rvalue_operator"/><DetectIdentifier context="#pop!rvalue_dot" lookAhead="1"/><IncludeRules context="@comment"/></context><context name="rvalue_var_postfix" attribute="g" fallthroughContext="#pop!rvalue_operator" lineEndContext="#pop"><AnyChar String="$%&amp;!#" attribute="var" context="#pop!rvalue_operator"/></context><context name="sub" attribute="g" fallthroughContext="sub_name"/><context name="sub_args" attribute="g" fallthroughContext="#pop#pop!sub_code"><DetectSpaces/><DetectIdentifier context="arg_as_type" lookAhead="1"/><DetectChar char=")" attribute="scope" context="#pop#pop!sub_ret"/><DetectChar char="," attribute="coma" context="arg_as_type"/></context><context name="sub_end" attribute="keyword" fallthroughContext="#pop#pop" lineEndContext="#pop#pop"><DetectSpaces/><StringDetect String="sub" attribute="keyword" context="#pop#pop!inline_call" endRegion="sub" insensitive="1"/></context><context name="sub_name" attribute="g" fallthroughContext="#pop!sub_code"><DetectSpaces/><DetectIdentifier attribute="func" context="#pop!sub_open_brace"/><DetectChar char="(" context="#pop!sub_open_brace" lookAhead="1"/></context><context name="sub_ret" attribute="g" fallthroughContext="#pop!sub_code"><DetectChar char=" "/><keyword String="as" context="as_type" lookAhead="1"/></context><context name="try_begin" attribute="g" lineEndContext="#pop"><DetectIdentifier attribute="keyword" context="#pop!try_body"/></context><context name="try_body" attribute="g" fallthroughContext="#pop"><DetectSpaces/><StringDetect String="end" attribute="keyword" context="#pop!try_end" insensitive="1"/><keyword String="endtry" attribute="keyword" context="#pop"/><keyword String="catch" context="catch_test" lookAhead="1"/><IncludeRules context="@code"/></context><context name="try_end" attribute="g" lineEndContext="#pop"><DetectSpaces/><keyword String="try" attribute="keyword" context="#pop"/></context><context name="try_test" attribute="g" fallthroughContext="#pop!lvalue" lineEndContext="#pop"><RegExpr String="try\s*('|$)" context="#pop!try_begin" lookAhead="1"/></context></contexts><itemDatas><itemData name="g" defStyleNum="dsNormal"/><itemData name="import" defStyleNum="dsImport"/><itemData name="func" defStyleNum="dsFunction"/><itemData name="keyword" defStyleNum="dsKeyword"/><itemData name="control" defStyleNum="dsControlFlow"/><itemData name="assign" defStyleNum="dsOperator"/><itemData name="binary" defStyleNum="dsOperator"/><itemData name="unary" defStyleNum="dsOperator"/><itemData name="operator" defStyleNum="dsOperator"/><itemData name="scope" defStyleNum="dsOperator"/><itemData name="coma" defStyleNum="dsOperator"/><itemData name="type" defStyleNum="dsDataType"/><itemData name="var" defStyleNum="dsVariable"/><itemData name="comment" defStyleNum="dsComment"/><itemData name="print" defStyleNum="dsBuiltIn"/><itemData name="builtin_func" defStyleNum="dsBuiltIn"/><itemData name="library_func" defStyleNum="dsBuiltIn"/><itemData name="dec" defStyleNum="dsDecVal"/><itemData name="float" defStyleNum="dsFloat"/><itemData name="string" defStyleNum="dsString"/><itemData name="constant" defStyleNum="dsConstant"/><itemData name="macro" defStyleNum="dsPreprocessor"/><itemData name="label" defStyleNum="dsSpecialChar"/><itemData name="line_break" defStyleNum="dsSpecialChar"/><itemData name="m" defStyleNum="dsExtension"/><itemData name="top" defStyleNum="dsExtension"/><itemData name="invalid" defStyleNum="dsError"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="'"/></comments><keywords casesensitive="0" additionalDeliminator="'"/></general></language>