<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language[ <!ENTITY int "(?:[0-9](?:'?[0-9]++)*+)"> <!ENTITY hex_int "(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f]++)*+)"> <!ENTITY exp_float "(?:[eE][+-]?∫)"> <!ENTITY exp_hexfloat "(?:[pP][-+]?∫)"> <!ENTITY separators ",;"> <!ENTITY ns_punctuators "(){}[].+-/*%=<>!|&?~^"> <!ENTITY punctuators ":&ns_punctuators;"> <!-- printf-like format strings conversion specifiers --> <!ENTITY printf_like "%[-+ #0]*+(?:[0-9]++|\*)?(?:\.(?:[0-9]++|\*))?(?:(?:hh|ll|[hljzt]|wf?(?:8|16|32|64))?[dioxXubn]|(?:DD|[lLHD])?[fFeEaAgG]|l?[cs]|[p%])"> <!-- https://en.cppreference.com/w/cpp/utility/format/formatter#Standard_format_specification --> <!ENTITY format_like "\{\{|\}\}|\{[0-9]*(?::(?:[^{}]?[<>^])?[-+ #0]*(?:[0-9]+|\{[0-9]*\})?(?:\.(?:[0-9]+|\{[0-9]*\}))?L?[sbBcdoxXaAeEfFgGp]?)?\}"> <!ENTITY ispphash "(?:#|%\:|\?\?=)"> <!ENTITY pphash "&ispphash;\s*"> <!ENTITY ppemptypp "($|(?=(/\*([^*]|\*[^/])*\*/\s*)?(//.*)?$))"> <!ENTITY ppcond0 "\s+(?:0|false)\s*&ppemptypp;"> <!ENTITY ppcond1 "\s+(?:1|true)\s*(\|\|([^/]|/[^*/])+)?&ppemptypp;"> <!ENTITY ident_internal1 "_[a-zA-Z0-9_]+"> <!ENTITY ident_internal2 "[a-zA-Z][a-zA-Z0-9_]*__\b"> <!ENTITY ident_internal "(?:&ident_internal1;|&ident_internal2;)"> <!ENTITY ident_member1 "m_[a-zA-Z0-9_]+"> <!ENTITY ident_member2 "[a-z][a-zA-Z0-9_]*_\b"> <!ENTITY ident_member "(?:&ident_member1;|&ident_member2;)"> <!ENTITY ident_CONST "[A-Z][A-Z0-9_]{2,}\b"> <!ENTITY ident_type "[a-zA-Z][a-zA-Z0-9_]*_t(?:ype)?\b"> <!ENTITY ident_global "g_[a-zA-Z0-9_]+"> <!ENTITY ident_static_prefix "s_[a-zA-Z0-9_]">]><language name="ISO C++" section="Sources" version="33" kateversion="5.79" indenter="cstyle" style="C++" mimetype="text/x-c++src;text/x-c++hdr;text/x-chdr" extensions="*.c++;*.cxx;*.cpp;*.cc;*.C;*.cu;*.h;*.hh;*.H;*.h++;*.hxx;*.hpp;*.hcc;*.cuh;*.inl;*.ino;*.pde;*.moc;*.mpp;*.ixx;*.cppm;*.cxxm;*.c++m;*.ccm" author="Alex Turbov (i.zaufi@gmail.com)" license="LGPL" priority="6" > <!-- Complete list of changes by Alex Turbov (I.zaufi@gmail.com) can be found at: http://kde-files.org/content/show.php?content=90660 --> <highlighting> <!-- https://en.cppreference.com/w/cpp/keyword --> <list name="controlflow"> <item>break</item> <item>case</item> <item>catch</item> <item>continue</item> <item>default</item> <item>do</item> <item>else</item> <item>for</item> <item>goto</item> <item>if</item> <item>return</item> <item>switch</item> <item>throw</item> <item>try</item> <item>while</item> <!-- coroutine --> <item>co_await</item> <item>co_return</item> <item>co_yield</item> </list> <!-- https://en.cppreference.com/w/cpp/keyword --> <list name="keywords"> <item>alignof</item> <item>alignas</item> <item>asm</item> <item>auto</item> <item>class</item> <item>consteval</item> <!-- C++20 --> <item>constinit</item> <!-- C++20 --> <item>constexpr</item> <!-- C++11 --> <item>const_cast</item> <item>decltype</item> <item>delete</item> <item>dynamic_cast</item> <item>enum</item> <item>explicit</item> <item>false</item> <item>final</item> <!-- C++11 --> <item>friend</item> <item>inline</item> <item>namespace</item> <item>new</item> <item>noexcept</item> <item>nullptr</item> <item>operator</item> <item>override</item> <!-- C++11 --> <item>private</item> <item>protected</item> <item>public</item> <item>reinterpret_cast</item> <item>sizeof</item> <item>static_assert</item> <item>static_cast</item> <item>struct</item> <item>template</item> <item>this</item> <item>true</item> <item>typedef</item> <item>typeid</item> <item>typename</item> <item>union</item> <item>using</item> <item>virtual</item> <!-- Alternative operators (see 2.12) --> <item>and</item> <item>and_eq</item> <item>bitand</item> <item>bitor</item> <item>compl</item> <item>not</item> <item>not_eq</item> <item>or</item> <item>or_eq</item> <item>xor</item> <item>xor_eq</item> <!-- Concept --> <item>concept</item> <item>requires</item> <!-- C++26 --> <item>contract_assert</item> <!-- TM TS --> <!-- <item>atomic_cancel</item> <item>atomic_commit</item> <item>atomic_noexcept</item> <item>synchronized</item> <item>transaction_safe</item> <item>transaction_safe_dynamic</item> --> <!-- module --> <item>import</item> <item>module</item> <item>export</item> <!-- Unused but reserved, keyword since c++20 --> <!-- reflexion TS --> <!-- <item>reflexpr</item> --> </list> <!-- 7.6 Attributes --> <!-- http://en.cppreference.com/w/cpp/language/attributes --> <list name="attributes"> <!-- C++11 --> <item>noreturn</item> <item>carries_dependency</item> <!-- C++14 --> <item>deprecated</item> <!-- C++17 --> <item>fallthrough</item> <item>nodiscard</item> <item>maybe_unused</item> <!-- C++20 --> <item>likely</item> <item>unlikely</item> <item>no_unique_address</item> <!-- C++23 --> <item>assume</item> <!-- C++26 --> <item>indeterminate</item> <!-- TM TS --> <!-- <item>optimize_for_synchronized</item> --> </list> <!-- https://en.cppreference.com/w/cpp/keyword --> <!-- https://en.cppreference.com/w/cpp/types/integer --> <list name="types"> <item>bool</item> <item>char</item> <item>char8_t</item> <!-- C++20 --> <item>char16_t</item> <item>char32_t</item> <item>double</item> <item>float</item> <item>int</item> <item>long</item> <item>short</item> <item>signed</item> <item>unsigned</item> <item>void</item> <item>int8_t</item> <item>int16_t</item> <item>int32_t</item> <item>int64_t</item> <item>uint8_t</item> <item>uint16_t</item> <item>uint32_t</item> <item>uint64_t</item> <item>int_least8_t</item> <item>int_least16_t</item> <item>int_least32_t</item> <item>int_least64_t</item> <item>uint_least8_t</item> <item>uint_least16_t</item> <item>uint_least32_t</item> <item>uint_least64_t</item> <item>int_fast8_t</item> <item>int_fast16_t</item> <item>int_fast32_t</item> <item>int_fast64_t</item> <item>uint_fast8_t</item> <item>uint_fast16_t</item> <item>uint_fast32_t</item> <item>uint_fast64_t</item> <item>size_t</item> <item>ssize_t</item> <item>wchar_t</item> <item>intptr_t</item> <item>uintptr_t</item> <item>intmax_t</item> <item>uintmax_t</item> <item>ptrdiff_t</item> <item>sig_atomic_t</item> <item>wint_t</item> <item>va_list</item> <item>FILE</item> <item>fpos_t</item> <item>time_t</item> </list> <list name="modifiers"> <item>const</item> <item>extern</item> <item>mutable</item> <item>register</item> <!-- The keyword is unused and reserved (c++17) --> <item>static</item> <item>thread_local</item> <item>volatile</item> </list> <!-- http://en.cppreference.com/w/cpp/preprocessor/replace --> <list name="StdMacros"> <item>__DATE__</item> <item>__FILE__</item> <item>__LINE__</item> <item>__STDCPP_DEFAULT_NEW_ALIGNMENT__</item> <item>__STDCPP_STRICT_POINTER_SAFETY__</item> <item>__STDCPP_THREADS__</item> <item>__STDC_HOSTED__</item> <item>__STDC_ISO_10646__</item> <item>__STDC_MB_MIGHT_NEQ_WC__</item> <item>__STDC_VERSION__</item> <item>__STDC__</item> <item>__TIME__</item> <item>__cplusplus</item> <item>__func__</item> <item>assert</item> <item>_Pragma</item> <!-- C++17 --> <item>__has_include</item> <!-- C++20 --> <item>__has_cpp_attribute</item> <!-- C++26 --> <item>__has_embed</item> </list> <list name="InMacro"> <item>__VA_ARGS__</item> <item>__VA_OPT__</item> </list> <!-- not used, for list-completion only (see PreprocessorCmd context) --> <list name="preprocessor"> <item>if</item> <item>ifdef</item> <item>ifndef</item> <item>elif</item> <item>elifdef</item> <!--C++23--> <item>elifndef</item> <!--C++23--> <item>else</item> <item>endif</item> <item>define</item> <item>include</item> <item>undef</item> <!-- C++26 --> <item>embed</item> </list> <list name="preprocessorDefine"> <item>cmakedefine01</item> <item>cmakedefine</item> <item>define</item> <item>undef</item> </list> <list name="preprocessorOther"> <item>error</item> <item>line</item> <item>pragma</item> <item>warning</item> </list> <contexts> <context name="Main" attribute="Normal Text" lineEndContext="#stay"> <DetectSpaces/> <!-- Match punctuators (partial for fast path) --> <AnyChar attribute="Symbol" context="#stay" String=":()]+-*=>!|&~^" /> <AnyChar attribute="Separator Symbol" context="#stay" String="&separators;" /> <!-- Match scope regions --> <DetectChar attribute="Symbol" context="#stay" char="{" beginRegion="Brace1" /> <DetectChar attribute="Symbol" context="#stay" char="}" endRegion="Brace1" /> <Detect2Chars attribute="Symbol" context="#stay" char="<" char1="%" beginRegion="Brace1" /> <!-- Digraph: { --> <Detect2Chars attribute="Symbol" context="#stay" char="%" char1=">" endRegion="Brace1" /> <!-- Digraph: } --> <!-- Detect attributes --> <Detect2Chars attribute="Symbol" context="Attribute" char="[" char1="[" /> <StringDetect attribute="Symbol" context="Attribute" String="<:<:" /> <!-- Digraph: [[ --> <!-- Match preprocessor directives --> <DetectChar attribute="Preprocessor" context="AfterHash" char="#" lookAhead="1"/> <Detect2Chars attribute="Preprocessor" context="AfterHash" char="%" char1=":" lookAhead="1"/> <!-- Digraph: # --> <StringDetect attribute="Preprocessor" context="AfterHash" String="??=" lookAhead="1"/> <!-- Trigraph: # --> <!-- Match numbers --> <RegExpr context="Number" String="\.?[0-9]" lookAhead="true" /> <!-- Match comments --> <IncludeRules context="match comments and region markers" /> <!-- Match punctuators --> <AnyChar attribute="Symbol" context="#stay" String="&punctuators;" /> <!-- Match keywords --> <IncludeRules context="match keywords" /> <!-- Match string literals --> <AnyChar context="SelectString" String="UuLR"'" lookAhead="1"/> <!-- Match GCC extensions --> <IncludeRules context="DetectGccExtensions##GCCExtensions" /> <!-- Match most used namespaces and styles --> <RegExpr context="DispatchNamespace" String="(std::)|(boost::|BOOST_)|details?::|aux::|internals::" lookAhead="1"/> <IncludeRules context="match identifier" /> <!-- Match invalid symbols --> <AnyChar attribute="Error" context="#stay" String="$@`" /> </context> <context name="match comments" attribute="Normal Text" lineEndContext="#pop"> <Detect2Chars attribute="Comment" context="MatchComment" char="/" char1="/" lookAhead="true"/> <Detect2Chars attribute="Comment" context="MatchComment" char="/" char1="*" lookAhead="true" /> </context> <context name="MatchComment" attribute="Normal Text" lineEndContext="#pop" fallthroughContext="#pop"> <IncludeRules context="##Doxygen" /> <Detect2Chars attribute="Comment" context="#pop!Comment 1" char="/" char1="/" /> <Detect2Chars attribute="Comment" context="#pop!Comment 2" char="/" char1="*" beginRegion="Comment" /> </context> <context name="match comments and region markers" attribute="Normal Text" lineEndContext="#pop"> <Detect2Chars attribute="Comment" context="MatchCommentAndRegionMarkers" char="/" char1="/" lookAhead="true"/> <Detect2Chars attribute="Comment" context="MatchCommentAndRegionMarkers" char="/" char1="*" lookAhead="true" /> </context> <context name="MatchCommentAndRegionMarkers" attribute="Normal Text" lineEndContext="#pop" fallthroughContext="#pop"> <StringDetect attribute="Region Marker" context="#pop!Region Marker" String="//BEGIN" beginRegion="Region1" firstNonSpace="true" /> <StringDetect attribute="Region Marker" context="#pop!Region Marker" String="//END" endRegion="Region1" firstNonSpace="true" /> <IncludeRules context="MatchComment" /> </context> <context name="match keywords" attribute="Normal Text" lineEndContext="#pop"> <WordDetect attribute="Keyword" context="CheckUDLOperator" String="operator" /> <keyword attribute="Control Flow" context="#stay" String="controlflow" /> <keyword attribute="Keyword" context="#stay" String="keywords" /> </context> <context name="SelectStringPP" attribute="Preprocessor" lineEndContext="#pop"> <IncludeRules context="SelectString"/> </context> <context name="SelectString" attribute="Normal Text" lineEndContext="#pop"> <DetectChar attribute="String" context="#pop!String8" char="""/> <DetectChar attribute="Char" context="#pop!Char8" char="'"/> <Detect2Chars context="#pop!SelectStringPrefix" char="U" char1=""" lookAhead="1"/> <Detect2Chars context="#pop!SelectStringPrefix" char="u" char1=""" lookAhead="1"/> <Detect2Chars context="#pop!SelectStringPrefix" char="L" char1=""" lookAhead="1"/> <StringDetect context="#pop!SelectStringPrefix" String="u8"" lookAhead="1"/> <StringDetect context="#pop!RawString" String="R"" lookAhead="1"/> <StringDetect context="#pop!RawString" String="uR"" lookAhead="1"/> <StringDetect context="#pop!RawString" String="UR"" lookAhead="1"/> <StringDetect context="#pop!RawString" String="LR"" lookAhead="1"/> <StringDetect context="#pop!RawString" String="u8R"" lookAhead="1"/> <Detect2Chars context="#pop!SelectCharPrefix" char="U" char1="'" lookAhead="1"/> <Detect2Chars context="#pop!SelectCharPrefix" char="u" char1="'" lookAhead="1"/> <Detect2Chars context="#pop!SelectCharPrefix" char="L" char1="'" lookAhead="1"/> <StringDetect context="#pop!SelectCharPrefix" String="u8'" lookAhead="1"/> <!-- match identifier --> <keyword attribute="Data Type" context="#pop" String="types"/> <RegExpr context="#pop!DispatchIdentifier" String="(&ident_internal2;)|(&ident_member2;)|(&ident_CONST;)|(&ident_type;)" lookAhead="1"/> <DetectIdentifier context="#pop"/> </context> <context name="SelectStringPrefix" attribute="String" lineEndContext="#pop"> <Detect2Chars attribute="String Literal Prefix" context="#pop!StringPrefix8" char="u" char1="8"/> <AnyChar attribute="String Literal Prefix" context="#pop!StringPrefix16" String="uL"/> <DetectChar attribute="String Literal Prefix" context="#pop!StringPrefix32" char="U"/> </context> <context name="StringPrefix8" attribute="String" lineEndContext="#pop"> <DetectChar attribute="String" context="#pop!String8" char="""/> </context> <context name="StringPrefix16" attribute="String" lineEndContext="#pop"> <DetectChar attribute="String" context="#pop!String16" char="""/> </context> <context name="StringPrefix32" attribute="String" lineEndContext="#pop"> <DetectChar attribute="String" context="#pop!String32" char="""/> </context> <context name="SelectCharPrefix" attribute="String" lineEndContext="#pop"> <Detect2Chars attribute="Char Literal Prefix" context="#pop!CharPrefix8" char="u" char1="8"/> <AnyChar attribute="Char Literal Prefix" context="#pop!CharPrefix16" String="uL"/> <DetectChar attribute="Char Literal Prefix" context="#pop!CharPrefix32" char="U"/> </context> <context name="CharPrefix8" attribute="Char" lineEndContext="#pop"> <DetectChar attribute="Char" context="#pop!Char8" char="'"/> </context> <context name="CharPrefix16" attribute="Char" lineEndContext="#pop"> <DetectChar attribute="Char" context="#pop!Char16" char="'"/> </context> <context name="CharPrefix32" attribute="Char" lineEndContext="#pop"> <DetectChar attribute="Char" context="#pop!Char32" char="'"/> </context> <context name="match identifier" attribute="Normal Text" lineEndContext="#pop"> <keyword attribute="Data Type" context="#stay" String="types" /> <keyword attribute="Type Modifiers" context="#stay" String="modifiers" /> <keyword attribute="Standard Macros" context="#stay" String="StdMacros" /> <RegExpr context="DispatchIdentifier" String="(&ident_internal;)|(&ident_member;)|(&ident_CONST;)|(&ident_type;)|(&ident_global;)|&ident_static_prefix;" lookAhead="1"/> <DetectIdentifier /> </context> <context name="DispatchIdentifier" attribute="Normal Text" lineEndContext="#pop"> <StringDetect context="#pop" String="%2" dynamic="1" attribute="Data Members (m_*)"/> <StringDetect context="#pop" String="%4" dynamic="1" attribute="Types (*_t/*_type)"/> <StringDetect context="#pop" String="%3" dynamic="1" attribute="CONSTS/MACROS"/> <StringDetect context="#pop" String="%1" dynamic="1" attribute="Internals"/> <StringDetect context="#pop" String="%5" dynamic="1" attribute="Globals (g_*)"/> <DetectIdentifier context="#pop" attribute="Statics (s_*)"/> </context> <context name="DispatchNamespace" attribute="Normal Text" lineEndContext="#pop"> <StringDetect context="#pop!Standard Classes" String="%1" dynamic="1" attribute="Standard Classes"/> <StringDetect context="#pop!Boost Stuff" String="%2" dynamic="1" attribute="Boost Stuff"/> <DetectIdentifier context="#pop!InternalsNS" attribute="Internals"/> </context> <context name="DispatchNamespacePP" attribute="Preprocessor" lineEndContext="#pop"> <StringDetect context="#pop!Standard Classes In PP" String="%1" dynamic="1" attribute="Standard Classes"/> <StringDetect context="#pop!Boost Stuff In PP" String="%2" dynamic="1" attribute="Boost Stuff"/> <DetectIdentifier context="#pop!InternalsNS In PP" attribute="Internals"/> </context> <context name="Number" attribute="Normal Text" lineEndContext="#pop" fallthroughContext="#pop"> <RegExpr attribute="Float" context="FloatSuffix" String="\.∫&exp_float;?|0[xX](?:\.&hex_int;&exp_hexfloat;?|&hex_int;(?:&exp_hexfloat;|\.&hex_int;?&exp_hexfloat;?))|∫(?:&exp_float;|\.∫?&exp_float;?)" /> <WordDetect attribute="Decimal" context="IntSuffix" String="0" weakDeliminator="."/> <IncludeRules context="Integer" /> </context> <context name="Integer" attribute="Normal Text" lineEndContext="#pop"> <DetectChar context="#pop!IntStartsWith0" char="0" lookAhead="1"/> <RegExpr attribute="Decimal" context="IntSuffix" String="∫" /> <RegExpr attribute="Error" context="#pop" String="[._0-9A-Za-z']++" /> </context> <context name="IntStartsWith0" attribute="Normal Text" lineEndContext="#pop"> <RegExpr attribute="Hex" context="IntSuffix" String="0[xX]&hex_int;" /> <RegExpr attribute="Binary" context="IntSuffix" String="0[Bb][01](?:'?[01]++)*+" /> <RegExpr attribute="Octal" context="IntSuffix" String="0(?:'?[0-7]++)++" /> <DetectChar attribute="Decimal" context="IntSuffix" char="0"/> </context> <context name="IntSuffix" attribute="Error" lineEndContext="#pop#pop" fallthroughContext="NumericSuffixError"> <DetectChar attribute="Error" context="#stay" char="'" /> <AnyChar context="#pop!IntSuffixPattern" String="uUlLzZimunshyd_" lookAhead="1"/> </context> <context name="IntSuffixPattern" attribute="Error" lineEndContext="#pop#pop" fallthroughContext="NumericSuffixError"> <DetectChar context="#pop!NumericUserSuffixPattern" char="_" lookAhead="1"/> <!-- https://en.cppreference.com/w/cpp/language/integer_literal#The_type_of_the_literal --> <RegExpr attribute="Standard Suffix" context="NumericSuffixError" String="([Uu](LL?|ll?|[Zz])?|(LL?|ll?|[Zz])[Uu]?)\b"/> <!-- https://en.cppreference.com/w/cpp/language/user_literal#Standard_library --> <RegExpr attribute="Standard Classes" context="NumericSuffixError" String="(?:i[fl]?|min|[mun]?s|[hyd])\b"/> </context> <context name="FloatSuffix" attribute="Error" lineEndContext="#pop#pop" fallthroughContext="NumericSuffixError"> <DetectChar attribute="Error" context="#stay" char="'" /> <AnyChar context="#pop!FloatSuffixPattern" String="fFlLbBimshd_" lookAhead="1"/> </context> <context name="FloatSuffixPattern" attribute="Error" lineEndContext="#pop#pop" fallthroughContext="NumericSuffixError"> <DetectChar context="#pop!NumericUserSuffixPattern" char="_" lookAhead="1"/> <!-- https://en.cppreference.com/w/cpp/language/floating_literal#Syntax --> <RegExpr attribute="Standard Suffix" context="NumericSuffixError" String="[fF](?:16|32|64|128)?|[lL]|bf16|BF16"/> <!-- https://en.cppreference.com/w/cpp/language/user_literal#Standard_library --> <RegExpr attribute="Standard Classes" context="NumericSuffixError" String="(?:i[fl]?|min|[mun]?s|[hd])\b"/> </context> <context name="NumericUserSuffixPattern" attribute="Error" lineEndContext="#pop#pop"> <!-- http://en.cppreference.com/w/cpp/language/user_literal#Notes Due to maximal munch, user-defined integer and floating point literals ending in p, P, (since C++17) e and E, when followed by the operators + or -, must be separated from the operator with whitespace or parentheses in the source --> <RegExpr attribute="Error" context="#pop#pop" String="_[eEpP][+-]" /> <DetectIdentifier attribute="UDL Numeric Suffix" context="NumericSuffixError"/> </context> <context name="NumericSuffixError" attribute="Error" lineEndContext="#pop#pop#pop" fallthroughContext="#pop#pop#pop"> <AnyChar attribute="Error" String=".'0123456789"/> <DetectIdentifier attribute="Error"/> </context> <context name="CheckUDLOperator" attribute="Normal Text" lineEndContext="#pop" fallthroughContext="#pop"> <DetectSpaces /> <Detect2Chars attribute="String" context="UDLOperatorName" char=""" char1=""" /> </context> <context name="UDLOperatorName" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop!IdentifierError"> <DetectSpaces /> <RegExpr attribute="Normal Text" context="#pop#pop" String="_[_[:alnum:]]*\b" /> </context> <context name="IdentifierError" attribute="Error" lineEndContext="#stay" fallthroughContext="#pop#pop"> <RegExpr attribute="Error" context="#pop#pop" String=".[^\s()]*" /> </context> <context name="Char8" attribute="Char" lineEndContext="#pop" fallthroughContext="CharClose"> <HlCStringChar attribute="String Char" context="CharClose"/> <IncludeRules context="FindSingleChar"/> </context> <context name="Char16" attribute="Char" lineEndContext="#pop" fallthroughContext="CharClose"> <RegExpr attribute="String Char" context="CharClose" String="\\(?:[tnvbrfa'"\\?]|[0-7]{1,3}|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4})|" /> <IncludeRules context="FindSingleChar"/> </context> <context name="Char32" attribute="Char" lineEndContext="#pop" fallthroughContext="CharClose"> <RegExpr attribute="String Char" context="CharClose" String="\\(?:[tnvbrfa'"\\?]|[0-7]{1,3}|x[0-9A-Fa-f]{1,8}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})|" /> <IncludeRules context="FindSingleChar"/> </context> <context name="FindSingleChar" attribute="Char" lineEndContext="#pop"> <DetectChar attribute="Error" context="#pop" char="'" /> <RegExpr attribute="Char" context="CharClose" String="." /> </context> <context name="CharClose" attribute="Error" lineEndContext="#pop#pop"> <DetectChar attribute="Char" context="#pop#pop" char="'" /> </context> <context name="String8" attribute="String" lineEndContext="#pop"> <IncludeRules context="string normal char" /> <Detect2Chars context="String8EscapeX" char="\" char1="x" lookAhead="1"/> <IncludeRules context="string special char" /> </context> <context name="String8EscapeX" attribute="String" lineEndContext="#pop"> <HlCStringChar attribute="String Char" context="#pop!StringNoHex"/> <IncludeRules context="string special char x" /> </context> <context name="String16" attribute="String" lineEndContext="#pop"> <IncludeRules context="string normal char" /> <Detect2Chars context="String16EscapeX" char="\" char1="x" lookAhead="1"/> <IncludeRules context="string special char" /> </context> <context name="String16EscapeX" attribute="String" lineEndContext="#pop"> <RegExpr attribute="String Char" context="#pop!StringNoHex" String="\\x[0-9A-Fa-f]{1,4}" /> <IncludeRules context="string special char x" /> </context> <context name="String32" attribute="String" lineEndContext="#pop"> <IncludeRules context="string normal char" /> <Detect2Chars context="String32EscapeX" char="\" char1="x" lookAhead="1"/> <IncludeRules context="string special char" /> </context> <context name="String32EscapeX" attribute="String" lineEndContext="#pop"> <RegExpr attribute="String Char" context="#pop!StringNoHex" String="\\x[0-9A-Fa-f]{1,8}" /> <IncludeRules context="string special char x" /> </context> <context name="StringNoHex" attribute="Error" lineEndContext="#pop" fallthroughContext="#pop"> <RegExpr attribute="Error" context="#pop" String="[0-9A-Fa-f]{1,}" /> </context> <context name="string special char" attribute="String" lineEndContext="#pop"> <HlCStringChar attribute="String Char"/> <!-- \x{n...} is defined in "string special char x" --> <RegExpr attribute="String Char" String="\\(?:u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8}|u{[0-9A-Fa-f]+}|o{[0-7]+}|N{[- A-Z0-9]+})|&printf_like;|&format_like;"/> <AnyChar attribute="String" String="%{}"/> <RegExpr attribute="Error" String="\\(?:u{([0-9A-Fa-f]+|})?|u[0-9A-Fa-f]{0,3}|U[0-9A-Fa-f]{0,7}|o{([0-7]+|})?|N{([- A-Z0-9]+|})?|.)"/> <LineContinue attribute="Separator Symbol"/> </context> <context name="string special char x" attribute="String" lineEndContext="#pop"> <RegExpr attribute="String Char" String="\\x{[0-9A-Fa-f]+}" context="#pop"/> <RegExpr attribute="Error" String="\\x({([0-9A-Fa-f]+|})?)?" context="#pop"/> </context> <context name="string normal char" attribute="String" lineEndContext="#pop"> <DetectChar attribute="String" context="UDLStringSuffix" char=""" /> <!-- fast way, can be replaced by a `UntilChars` rule if it exists --> <!-- % -> printf format ; {} -> std::format --> <RegExpr attribute="String" context="#stay" String="[^%\\"{}]+" /> </context> <context name="UDLStringSuffix" attribute="String" fallthroughContext="#pop#pop" lineEndContext="#pop#pop"> <WordDetect attribute="Standard Classes" context="#pop#pop" String="sv" /> <WordDetect attribute="Standard Classes" context="#pop#pop" String="s" /> <RegExpr attribute="UDL String Suffix" context="#pop#pop" String="_[_0-9A-Za-z]*\b" /> </context> <context name="Attribute" attribute="Attribute" lineEndContext="#stay"> <DetectSpaces/> <keyword attribute="Standard Attribute" context="#stay" String="attributes" /> <Detect2Chars attribute="Symbol" context="#pop" char="]" char1="]" /> <StringDetect attribute="Symbol" context="#pop" String=":>:>" /> <!-- Digraph: ]] --> <DetectChar attribute="Separator Symbol" context="#stay" char="," /> <IncludeRules context="match comments" /> <AnyChar attribute="Symbol" context="#stay" String="&punctuators;#" /> <!-- Attributes may contain some text: [[deprecated("Reason text")]] --> <DetectChar attribute="String" context="String8" char=""" /> <AnyChar attribute="Decimal" context="Integer" String="0123456789" lookAhead="true" /> <!-- This keyword may appear in Attribute context. For example in code: [[using CC: opt(1), debug]] and it should be displayed as keyword, not like part of attribute... --> <WordDetect attribute="Keyword" context="AttributeNamespace" String="using" /> <IncludeRules context="DetectGccAttributes##GCCExtensions" /> <RegExpr attribute="CONSTS/MACROS" context="#stay" String="[A-Z][A-Z0-9_]{2,}\b" /> <DetectIdentifier /> </context> <context name="Attribute In PP" attribute="Attribute" lineEndContext="#pop"> <IncludeRules context="InPreprocessor" /> <IncludeRules context="Attribute" /> </context> <context name="AttributeNamespace" attribute="Attribute" lineEndContext="#stay" fallthroughContext="#pop"> <DetectSpaces /> <IncludeRules context="DetectNamespaceGccAttributes##GCCExtensions" /> <DetectIdentifier /> </context> <context name="RawString" attribute="String" lineEndContext="#stay"> <AnyChar attribute="Raw String Literal Prefix" String="uUL8R"/> <!-- A sequence of one or more basic character set, except parentheses, backslash and spaces, at most 16 characters long --> <RegExpr attribute="Raw String Delimiter" context="#pop!InRawString" String=""([\x21-\x27\x2A-\x5B\x5D-\x7E]{0,16})\(" beginRegion="Raw String"/> <RegExpr attribute="Error" context="#pop" String=""(\s+|\w+\s*|"|[^\s\w]+)?"/> </context> <context name="InRawString" attribute="Raw String" lineEndContext="#stay" dynamic="true"> <!-- fast way, can be replaced by a `UntilChars` rule if it exists --> <RegExpr attribute="Raw String" context="#stay" String="[^%){}]+" /> <RegExpr attribute="String Char" context="#stay" String="&printf_like;|&format_like;" /> <StringDetect attribute="Raw String Delimiter" context="#pop" String=")%1"" dynamic="true" endRegion="Raw String" /> </context> <context name="Region Marker" attribute="Region Marker" lineEndContext="#pop" /> <context name="DetectNSEnd" attribute="Normal Text" lineEndContext="#stay"> <Detect2Chars char=":" char1=":"/> <IncludeRules context="match comments and region markers" /> <AnyChar context="#pop" String="&ns_punctuators;&separators; 	#:" lookAhead="1"/> <!-- This keyword may appear in InternalsNS context. For example in code: details::some_class::template some_templated_static(); and it should be displayed as keyword, not like part of details namespace... --> <WordDetect attribute="Keyword" context="#pop" String="template" /> <DetectIdentifier context="#stay"/> </context> <context name="Standard Classes" attribute="Standard Classes" lineEndContext="#stay" fallthroughContext="#pop"> <IncludeRules context="DetectNSEnd" /> </context> <context name="Boost Stuff" attribute="Boost Stuff" lineEndContext="#stay" fallthroughContext="#pop"> <IncludeRules context="DetectNSEnd" /> </context> <context name="InternalsNS" attribute="Internals" lineEndContext="#stay" fallthroughContext="#pop"> <IncludeRules context="DetectNSEnd" /> </context> <context name="Standard Classes In PP" attribute="Standard Classes" lineEndContext="#pop" fallthroughContext="#pop"> <IncludeRules context="InPreprocessor" /> <Detect2Chars attribute="Symbol" char="#" char1="#"/> <IncludeRules context="DetectNSEnd" /> </context> <context name="Boost Stuff In PP" attribute="Boost Stuff" lineEndContext="#pop" fallthroughContext="#pop"> <IncludeRules context="InPreprocessor" /> <Detect2Chars attribute="Symbol" char="#" char1="#"/> <IncludeRules context="DetectNSEnd" /> </context> <context name="InternalsNS In PP" attribute="Internals" lineEndContext="#pop" fallthroughContext="#pop"> <IncludeRules context="InPreprocessor" /> <Detect2Chars attribute="Symbol" char="#" char1="#"/> <IncludeRules context="DetectNSEnd" /> </context> <context name="Comment 1" attribute="Comment" lineEndContext="#pop"> <LineContinue attribute="Error" context="#stay" /> <DetectSpaces /> <IncludeRules context="##Comments" /> <DetectIdentifier /> </context> <context name="Comment 2" attribute="Comment" lineEndContext="#stay"> <DetectSpaces /> <LineContinue attribute="Comment" context="#stay" /> <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment" /> <IncludeRules context="##Comments" /> <DetectIdentifier /> </context> <context name="AfterHash" attribute="Error" lineEndContext="#pop" fallthroughContext="#pop!LineError"> <RegExpr attribute="Preprocessor" context="#pop!PreprocessorCmd" String="&pphash;(?=.)|" firstNonSpace="true" /> </context> <context name="LineError" attribute="Error" lineEndContext="#pop"> <LineContinue attribute="Error" context="#stay" /> <RegExpr attribute="Error" context="#stay" String="[^\\]+" /> </context> <context name="PreprocessorCmd" attribute="Error" lineEndContext="#pop" fallthroughContext="#pop!LineError"> <WordDetect attribute="Preprocessor" context="#pop!Include" String="include" /> <WordDetect attribute="Preprocessor" context="#pop!PreprocessorIfDef" String="ifdef" beginRegion="PP" lookAhead="true" /> <WordDetect attribute="Preprocessor" context="#pop!PreprocessorIfDef" String="ifndef" beginRegion="PP" lookAhead="true" /> <WordDetect attribute="Preprocessor" context="#pop!PreprocessorIf" String="if" beginRegion="PP" lookAhead="true" /> <WordDetect attribute="Preprocessor" context="#pop!PreprocessorIf" String="elif" endRegion="PP" beginRegion="PP" lookAhead="true" /> <WordDetect attribute="Preprocessor" context="PreprocessorEndOfLineSpace" String="else" endRegion="PP" beginRegion="PP" /> <WordDetect attribute="Preprocessor" context="PreprocessorEndOfLineSpace" String="endif" endRegion="PP" /> <WordDetect attribute="Preprocessor" context="#pop!PreprocessorIfDef" String="elifdef" endRegion="PP" beginRegion="PP" lookAhead="true" /> <WordDetect attribute="Preprocessor" context="#pop!PreprocessorIfDef" String="elifndef" endRegion="PP" beginRegion="PP" lookAhead="true" /> <WordDetect attribute="Preprocessor" context="#pop!Embed" String="embed"/> <keyword attribute="Preprocessor" context="#pop!Define" String="preprocessorDefine" /> <keyword attribute="Preprocessor" context="#pop!Preprocessor" String="preprocessorOther" /> <!-- GCC extension --> <WordDetect attribute="Preprocessor" context="#pop!Include" String="include_next" /> <Int attribute="Preprocessor" context="#pop!Preprocessor"/> </context> <context name="Include" attribute="Preprocessor" lineEndContext="#pop"> <DetectSpaces/> <RangeDetect attribute="Prep. Lib" context="PreprocessorEndOfLineSpace" char=""" char1=""" /> <RangeDetect attribute="Prep. Lib" context="PreprocessorEndOfLineSpace" char="<" char1=">" /> <IncludeRules context="Preprocessor" /> <DetectIdentifier/> </context> <context name="Embed" attribute="Preprocessor" lineEndContext="#pop" fallthroughContext="#pop!Preprocessor"> <DetectSpaces/> <RangeDetect attribute="Prep. Lib" context="#pop!Preprocessor" char=""" char1=""" /> <RangeDetect attribute="Prep. Lib" context="#pop!Preprocessor" char="<" char1=">" /> </context> <context name="PreprocessorIfDef" attribute="Preprocessor" lineEndContext="#pop" fallthroughContext="#pop!LineError"> <RegExpr attribute="Preprocessor" context="#pop!Preprocessor" String="\w+\s+([_A-Za-z][A-Za-z0-9]*\s*|(?=//|/\*))" /> </context> <context name="PreprocessorIf" attribute="Preprocessor" lineEndContext="#pop" fallthroughContext="#pop!LineError"> <RegExpr attribute="Preprocessor" context="#pop!Inscoped" String="\w+&ppcond1;" /> <RegExpr attribute="Preprocessor" context="#pop!Outscoped" String="\w+&ppcond0;" /> <RegExpr attribute="Preprocessor" context="#pop!Preprocessor" String="\w+\s+(?=[^\s])" /> </context> <context name="PreprocessorEndOfLineSpace" attribute="Preprocessor" lineEndContext="#pop#pop" fallthroughContext="#pop#pop!LineError"> <DetectSpaces /> <IncludeRules context="match comments" /> </context> <context name="Preprocessor" attribute="Preprocessor" lineEndContext="#pop"> <LineContinue attribute="Preprocessor" context="#stay" /> <keyword attribute="Standard Macros" context="#stay" String="StdMacros" /> <IncludeRules context="GNUMacros##GCCExtensions" /> <IncludeRules context="match comments" /> </context> <context name="Define" attribute="Preprocessor" lineEndContext="#pop"> <DetectSpaces/> <!-- Old version: non-contextual macro <IncludeRules context="InPreprocessor" /> <keyword attribute="Standard Macros" context="#stay" String="StdMacros" /> <keyword attribute="Standard Macros" context="#stay" String="InMacro" /> <IncludeRules context="GNUMacros##GCCExtensions" /> <IncludeRules context="match comments" /> --> <IncludeRules context="InPreprocessor" /> <Detect2Chars attribute="Error" context="#pop!LineError" char="/" char1="/" /> <Detect2Chars attribute="Comment" context="MatchComment" char="/" char1="*" lookAhead="true" /> <IncludeRules context="GNUMacros##GCCExtensions" /> <DetectIdentifier attribute="Preprocessor" context="#pop!In Define"/> </context> <context name="In Define" attribute="Preprocessor" lineEndContext="#pop"> <DetectSpaces/> <LineContinue attribute="Separator Symbol" context="#stay" /> <!-- Match scope regions and punctuators (partial for fast path) --> <AnyChar attribute="Symbol" context="#stay" String="#:(){}]+-*%=>!|&~^" /> <!-- Detect attributes --> <Detect2Chars attribute="Symbol" context="Attribute In PP" char="[" char1="[" /> <StringDetect attribute="Symbol" context="Attribute In PP" String="<:<:" /> <!-- Digraph: [[ --> <!-- Match numbers --> <RegExpr context="Number" String="\.?\d" lookAhead="true" /> <!-- Match comments --> <IncludeRules context="match comments" /> <!-- Match punctuators --> <AnyChar attribute="Separator Symbol" context="#stay" String="&separators;" /> <AnyChar attribute="Symbol" context="#stay" String="&punctuators;" /> <!-- Match keywords --> <IncludeRules context="match keywords" /> <!-- Match string literals --> <AnyChar context="SelectStringPP" String="UuLR"'" lookAhead="1"/> <!-- Match GCC extensions --> <IncludeRules context="DetectGccExtensionsInPP##GCCExtensions" /> <!-- Match most used namespaces and styles --> <RegExpr context="DispatchNamespacePP" String="(std::)|(boost::|BOOST_)|details?::|aux::|internals::" lookAhead="1"/> <keyword attribute="Standard Macros" context="#stay" String="InMacro" /> <IncludeRules context="match identifier" /> <!-- Match invalid symbols --> <AnyChar attribute="Error" context="#stay" String="$@`\" /> </context> <context name="InPreprocessor" attribute="Normal Text" lineEndContext="#pop"> <LineContinue attribute="Separator Symbol" context="#stay" /> <DetectChar attribute="Error" context="#stay" char="\" /> </context> <context name="Outscoped Common" attribute="Comment" lineEndContext="#stay"> <DetectSpaces /> <IncludeRules context="##Comments" /> <DetectIdentifier /> <!-- prevent incorrect highlighting in case of not closed properly comment block --> <Detect2Chars attribute="Comment" context="#stay" char="*" char1="/" /> <IncludeRules context="match comments" /> <RegExpr attribute="Comment" context="Outscoped intern" String="&pphash;if|" beginRegion="PP" firstNonSpace="true" /> <LineContinue context="#stay" /> </context> <context name="Outscoped" attribute="Comment" lineEndContext="#stay"> <DetectSpaces /> <RegExpr attribute="Preprocessor" context="Outscoped AfterHash" String="&ispphash;|" firstNonSpace="true" lookAhead="true" /> <IncludeRules context="Outscoped Common" /> </context> <context name="Outscoped AfterHash" attribute="Comment" lineEndContext="#pop"> <RegExpr attribute="Preprocessor" context="#pop#pop!PreprocessorEndOfLineSpace" String="&pphash;endif\b" endRegion="PP" /> <RegExpr attribute="Preprocessor" context="#pop#pop!Inscoped" String="&pphash;else\b" endRegion="PP" beginRegion="PP" /> <RegExpr attribute="Comment" context="#pop!Outscoped intern" String="&pphash;if" beginRegion="PP" /> <RegExpr attribute="Preprocessor" context="#pop#pop!Inscoped" String="&pphash;elif&ppcond1;" endRegion="PP" beginRegion="PP" /> <RegExpr attribute="Preprocessor" context="#pop" String="&pphash;elif&ppcond0;" endRegion="PP" beginRegion="PP" /> <RegExpr attribute="Preprocessor" context="#pop#pop!Preprocessor" String="&pphash;elif\b" endRegion="PP" beginRegion="PP" /> <RegExpr attribute="Comment" context="#pop" String="&pphash;" /> </context> <context name="Outscoped 2" attribute="Comment" lineEndContext="#stay"> <IncludeRules context="Outscoped Common" /> <RegExpr attribute="Preprocessor" context="#pop!PreprocessorEndOfLineSpace" String="&pphash;endif|" endRegion="PP" firstNonSpace="true" /> </context> <context name="Inscoped" attribute="Normal Text" lineEndContext="#stay"> <DetectSpaces /> <RegExpr attribute="Preprocessor" context="Inscoped AfterHash" String="&ispphash;|" firstNonSpace="true" lookAhead="true" /> <IncludeRules context="Main" /> </context> <context name="Inscoped AfterHash" attribute="Normal Text" lineEndContext="#pop" fallthroughContext="#pop!AfterHash"> <DetectSpaces /> <RegExpr attribute="Preprocessor" context="#pop!Outscoped 2" String="&pphash;el(?:se|if(n?def)?)" endRegion="PP" beginRegion="PP"/> <RegExpr attribute="Preprocessor" context="#pop#pop!PreprocessorEndOfLineSpace" String="&pphash;endif\b" endRegion="PP" /> </context> <context name="Outscoped intern" attribute="Comment" lineEndContext="#stay"> <DetectSpaces /> <IncludeRules context="##Comments" /> <DetectIdentifier /> <!-- prevent incorrect highlighting in case of not closed properly comment block --> <Detect2Chars attribute="Comment" context="#stay" char="*" char1="/" /> <IncludeRules context="match comments" /> <RegExpr attribute="Comment" context="Outscoped intern" String="&pphash;if|" beginRegion="PP" firstNonSpace="true" /> <RegExpr attribute="Comment" context="#stay" String="&pphash;el(se|if(n?def)?)|" beginRegion="PP" endRegion="PP" firstNonSpace="true" /> <RegExpr attribute="Comment" context="PreprocessorEndOfLineSpace" String="&pphash;endif|" endRegion="PP" firstNonSpace="true" /> </context> </contexts> <itemDatas> <itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false" /> <itemData name="Control Flow" defStyleNum="dsControlFlow" spellChecking="false" /> <itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false" /> <itemData name="Data Type" defStyleNum="dsDataType" spellChecking="false" /> <itemData name="Type Modifiers" defStyleNum="dsAttribute" spellChecking="false" /> <itemData name="Attribute" defStyleNum="dsAttribute" spellChecking="false" bold="false" italic="true" /> <itemData name="Standard Attribute" defStyleNum="dsAttribute" spellChecking="false" bold="false" italic="true" /> <itemData name="Decimal" defStyleNum="dsDecVal" spellChecking="false" /> <itemData name="Octal" defStyleNum="dsBaseN" spellChecking="false" /> <itemData name="Hex" defStyleNum="dsBaseN" spellChecking="false" /> <itemData name="Binary" defStyleNum="dsBaseN" spellChecking="false" /> <itemData name="Float" defStyleNum="dsFloat" spellChecking="false" /> <itemData name="Char" defStyleNum="dsChar" spellChecking="false" /> <itemData name="Char Literal Prefix" defStyleNum="dsChar" spellChecking="false" /> <itemData name="String" defStyleNum="dsString" spellChecking="true" /> <itemData name="String Char" defStyleNum="dsSpecialChar" spellChecking="false" /> <itemData name="String Literal Prefix" defStyleNum="dsString" spellChecking="true" /> <itemData name="Raw String" defStyleNum="dsVerbatimString" spellChecking="true" /> <itemData name="Raw String Delimiter" defStyleNum="dsString" spellChecking="false" /> <itemData name="Raw String Literal Prefix" defStyleNum="dsString" spellChecking="false" /> <itemData name="Comment" defStyleNum="dsComment" spellChecking="true" /> <itemData name="Symbol" defStyleNum="dsOperator" spellChecking="false" /> <itemData name="Separator Symbol" defStyleNum="dsOperator" spellChecking="false" /> <itemData name="Data Members (m_*)" defStyleNum="dsVariable" spellChecking="false" /> <itemData name="Globals (g_*)" defStyleNum="dsVariable" spellChecking="false" /> <itemData name="Statics (s_*)" defStyleNum="dsVariable" spellChecking="false" /> <itemData name="Types (*_t/*_type)" defStyleNum="dsDataType" spellChecking="false" /> <itemData name="CONSTS/MACROS" defStyleNum="dsNormal" spellChecking="false" /> <itemData name="Preprocessor" defStyleNum="dsPreprocessor" spellChecking="false" /> <itemData name="Prep. Lib" defStyleNum="dsImport" spellChecking="false" /> <itemData name="Standard Macros" defStyleNum="dsOthers" spellChecking="false" /> <itemData name="Standard Classes" defStyleNum="dsBuiltIn" spellChecking="false" /> <itemData name="Boost Stuff" defStyleNum="dsExtension" spellChecking="false" /> <itemData name="Internals" defStyleNum="dsNormal" spellChecking="false" color="#808080" selColor="#808080" /> <itemData name="Region Marker" defStyleNum="dsRegionMarker" spellChecking="false" /> <itemData name="UDL Numeric Suffix" defStyleNum="dsOperator" spellChecking="false" /> <itemData name="UDL String Suffix" defStyleNum="dsOperator" spellChecking="false" /> <itemData name="Standard Suffix" defStyleNum="dsBuiltIn" spellChecking="false" /> <itemData name="Error" defStyleNum="dsError" spellChecking="false" /> </itemDatas> </highlighting> <general> <comments> <comment name="singleLine" start="//" position="afterwhitespace"/> <comment name="multiLine" start="/*" end="*/" region="Comment" /> </comments> <keywords casesensitive="1" additionalDeliminator="#"" /> </general></language><!-- kate: indent-width 2; tab-width 2; -->