Changeset View
Changeset View
Standalone View
Standalone View
data/syntax/isocpp.xml
Show All 16 Lines | 3 | [ | |||
---|---|---|---|---|---|
17 | <!ENTITY pphash "&ispphash;\s*"> | 17 | <!ENTITY pphash "&ispphash;\s*"> | ||
18 | <!ENTITY ppemptypp "($|(?=(/\*([^*]|\*[^/])*\*/\s*)?(//.*)?$))"> | 18 | <!ENTITY ppemptypp "($|(?=(/\*([^*]|\*[^/])*\*/\s*)?(//.*)?$))"> | ||
19 | <!ENTITY ppcond0 "\s+(?:0|false)\s*&ppemptypp;"> | 19 | <!ENTITY ppcond0 "\s+(?:0|false)\s*&ppemptypp;"> | ||
20 | <!ENTITY ppcond1 "\s+(?:1|true)\s*(\|\|([^/]|/[^*/])+)?&ppemptypp;"> | 20 | <!ENTITY ppcond1 "\s+(?:1|true)\s*(\|\|([^/]|/[^*/])+)?&ppemptypp;"> | ||
21 | ]> | 21 | ]> | ||
22 | <language | 22 | <language | ||
23 | name="ISO C++" | 23 | name="ISO C++" | ||
24 | section="Sources" | 24 | section="Sources" | ||
25 | version="16" | 25 | version="17" | ||
26 | kateversion="5.0" | 26 | kateversion="5.0" | ||
27 | indenter="cstyle" | 27 | indenter="cstyle" | ||
28 | style="C++" | 28 | style="C++" | ||
29 | mimetype="text/x-c++src;text/x-c++hdr;text/x-chdr" | 29 | mimetype="text/x-c++src;text/x-c++hdr;text/x-chdr" | ||
30 | extensions="*.c++;*.cxx;*.cpp;*.cc;*.C;*.h;*.hh;*.H;*.h++;*.hxx;*.hpp;*.hcc;*.moc" | 30 | extensions="*.c++;*.cxx;*.cpp;*.cc;*.C;*.h;*.hh;*.H;*.h++;*.hxx;*.hpp;*.hcc;*.moc" | ||
31 | author="Alex Turbov (i.zaufi@gmail.com)" | 31 | author="Alex Turbov (i.zaufi@gmail.com)" | ||
32 | license="LGPL" | 32 | license="LGPL" | ||
33 | priority="6" | 33 | priority="6" | ||
▲ Show 20 Lines • Show All 255 Lines • ▼ Show 20 Line(s) | 40 | <highlighting> | |||
289 | </list> | 289 | </list> | ||
290 | 290 | | |||
291 | <contexts> | 291 | <contexts> | ||
292 | <context name="Main" attribute="Normal Text" lineEndContext="#stay"> | 292 | <context name="Main" attribute="Normal Text" lineEndContext="#stay"> | ||
293 | <DetectSpaces/> | 293 | <DetectSpaces/> | ||
294 | <!-- Match scope regions --> | 294 | <!-- Match scope regions --> | ||
295 | <DetectChar attribute="Symbol" context="#stay" char="{" beginRegion="Brace1" /> | 295 | <DetectChar attribute="Symbol" context="#stay" char="{" beginRegion="Brace1" /> | ||
296 | <DetectChar attribute="Symbol" context="#stay" char="}" endRegion="Brace1" /> | 296 | <DetectChar attribute="Symbol" context="#stay" char="}" endRegion="Brace1" /> | ||
297 | <Detect2Chars attribute="Symbol" context="#stay" char="<" char1="%" beginRegion="Brace1" /> <!-- Digraph: { --> | ||||
298 | <Detect2Chars attribute="Symbol" context="#stay" char="%" char1=">" endRegion="Brace1" /> <!-- Digraph: } --> | ||||
297 | <!-- Detect attributes --> | 299 | <!-- Detect attributes --> | ||
298 | <Detect2Chars attribute="Symbol" context="Attribute" char="[" char1="[" /> | 300 | <Detect2Chars attribute="Symbol" context="Attribute" char="[" char1="[" /> | ||
301 | <StringDetect attribute="Symbol" context="Attribute" String="<:<:" /> <!-- Digraph: [[ --> | ||||
299 | <!-- Match numbers --> | 302 | <!-- Match numbers --> | ||
300 | <RegExpr attribute="Decimal" context="Number" String="\.?[0-9]" lookAhead="true" /> | 303 | <RegExpr attribute="Decimal" context="Number" String="\.?[0-9]" lookAhead="true" /> | ||
301 | <!-- Match comments --> | 304 | <!-- Match comments --> | ||
302 | <IncludeRules context="match comments and region markers" /> | 305 | <IncludeRules context="match comments and region markers" /> | ||
303 | <!-- Match punctuators --> | | |||
304 | <AnyChar attribute="Separator Symbol" context="#stay" String="&separators;" /> | | |||
305 | <AnyChar attribute="Symbol" context="#stay" String="&punctuators;" /> | | |||
306 | <!-- Match keywords --> | 306 | <!-- Match keywords --> | ||
307 | <IncludeRules context="match keywords" /> | 307 | <IncludeRules context="match keywords" /> | ||
308 | <!-- Match string literals --> | 308 | <!-- Match string literals --> | ||
309 | <IncludeRules context="match string" /> | 309 | <IncludeRules context="match string" /> | ||
310 | <!-- Match GCC extensions --> | 310 | <!-- Match GCC extensions --> | ||
311 | <IncludeRules context="DetectGccExtensions##GCCExtensions" /> | 311 | <IncludeRules context="DetectGccExtensions##GCCExtensions" /> | ||
312 | <!-- Match most used namespaces and styles --> | 312 | <!-- Match most used namespaces and styles --> | ||
313 | <StringDetect attribute="Standard Classes" context="Standard Classes" String="std::" /> | 313 | <StringDetect attribute="Standard Classes" context="Standard Classes" String="std::" /> | ||
314 | <StringDetect attribute="Boost Stuff" context="Boost Stuff" String="boost::" /> | 314 | <StringDetect attribute="Boost Stuff" context="Boost Stuff" String="boost::" /> | ||
315 | <StringDetect attribute="Boost Stuff" context="Boost Stuff" String="BOOST_" /> | 315 | <StringDetect attribute="Boost Stuff" context="Boost Stuff" String="BOOST_" /> | ||
316 | <StringDetect attribute="Internals" context="InternalsNS" String="detail::" /> | 316 | <StringDetect attribute="Internals" context="InternalsNS" String="detail::" /> | ||
317 | <StringDetect attribute="Internals" context="InternalsNS" String="details::" /> | 317 | <StringDetect attribute="Internals" context="InternalsNS" String="details::" /> | ||
318 | <StringDetect attribute="Internals" context="InternalsNS" String="aux::" /> | 318 | <StringDetect attribute="Internals" context="InternalsNS" String="aux::" /> | ||
319 | <StringDetect attribute="Internals" context="InternalsNS" String="internals::" /> | 319 | <StringDetect attribute="Internals" context="InternalsNS" String="internals::" /> | ||
320 | <IncludeRules context="match identifier" /> | 320 | <IncludeRules context="match identifier" /> | ||
321 | <!-- Match preprocessor directives --> | 321 | <!-- Match preprocessor directives --> | ||
322 | <RegExpr attribute="Preprocessor" context="AfterHash" String="&ispphash;" lookAhead="true" /> | 322 | <RegExpr attribute="Preprocessor" context="AfterHash" String="&ispphash;" lookAhead="true" /> | ||
323 | <!-- Match punctuators --> | ||||
324 | <AnyChar attribute="Separator Symbol" context="#stay" String="&separators;" /> | ||||
325 | <AnyChar attribute="Symbol" context="#stay" String="&punctuators;" /> | ||||
323 | <!-- Match invalid symbols --> | 326 | <!-- Match invalid symbols --> | ||
324 | <AnyChar attribute="Error" context="#stay" String="$@`" /> | 327 | <AnyChar attribute="Error" context="#stay" String="$@`" /> | ||
325 | </context> | 328 | </context> | ||
326 | 329 | | |||
327 | <context name="match comments" attribute="Normal Text" lineEndContext="#pop"> | 330 | <context name="match comments" attribute="Normal Text" lineEndContext="#pop"> | ||
328 | <Detect2Chars attribute="Comment" context="MatchComment" char="/" char1="/" lookAhead="true"/> | 331 | <Detect2Chars attribute="Comment" context="MatchComment" char="/" char1="/" lookAhead="true"/> | ||
329 | <Detect2Chars attribute="Comment" context="MatchComment" char="/" char1="*" lookAhead="true" /> | 332 | <Detect2Chars attribute="Comment" context="MatchComment" char="/" char1="*" lookAhead="true" /> | ||
330 | </context> | 333 | </context> | ||
▲ Show 20 Lines • Show All 183 Lines • ▼ Show 20 Line(s) | 514 | <context name="UDLStringSuffix" attribute="String" fallthrough="true" fallthroughContext="#pop#pop" lineEndContext="#pop#pop"> | |||
514 | <RegExpr attribute="UDL String Suffix" context="#pop#pop" String="_[_0-9A-Za-z]*\b" /> | 517 | <RegExpr attribute="UDL String Suffix" context="#pop#pop" String="_[_0-9A-Za-z]*\b" /> | ||
515 | </context> | 518 | </context> | ||
516 | 519 | | |||
517 | 520 | | |||
518 | <context name="Attribute" attribute="Attribute" lineEndContext="#stay"> | 521 | <context name="Attribute" attribute="Attribute" lineEndContext="#stay"> | ||
519 | <DetectSpaces/> | 522 | <DetectSpaces/> | ||
520 | <keyword attribute="Standard Attribute" context="#stay" String="attributes" /> | 523 | <keyword attribute="Standard Attribute" context="#stay" String="attributes" /> | ||
521 | <Detect2Chars attribute="Symbol" context="#pop" char="]" char1="]" /> | 524 | <Detect2Chars attribute="Symbol" context="#pop" char="]" char1="]" /> | ||
525 | <StringDetect attribute="Symbol" context="#pop" String=":>:>" /> <!-- Digraph: ]] --> | ||||
522 | <DetectChar attribute="Separator Symbol" context="#stay" char="," /> | 526 | <DetectChar attribute="Separator Symbol" context="#stay" char="," /> | ||
523 | <AnyChar attribute="Symbol" context="#stay" String="&punctuators;" /> | 527 | <AnyChar attribute="Symbol" context="#stay" String="&punctuators;" /> | ||
524 | <!-- Attributes may contain some text: [[deprecated("Reason text")]] --> | 528 | <!-- Attributes may contain some text: [[deprecated("Reason text")]] --> | ||
525 | <DetectChar attribute="String" context="String" char=""" /> | 529 | <DetectChar attribute="String" context="String" char=""" /> | ||
526 | <AnyChar attribute="Decimal" context="Integer" String="0123456789" lookAhead="true" /> | 530 | <AnyChar attribute="Decimal" context="Integer" String="0123456789" lookAhead="true" /> | ||
527 | <keyword attribute="Keyword" context="AttributeNamespace" String="using" /> | 531 | <keyword attribute="Keyword" context="AttributeNamespace" String="using" /> | ||
528 | <IncludeRules context="DetectGccAttributes##GCCExtensions" /> | 532 | <IncludeRules context="DetectGccAttributes##GCCExtensions" /> | ||
529 | <RegExpr attribute="CONSTS/MACROS" context="#stay" String="[A-Z][A-Z0-9_]{2,}\b" /> | 533 | <RegExpr attribute="CONSTS/MACROS" context="#stay" String="[A-Z][A-Z0-9_]{2,}\b" /> | ||
▲ Show 20 Lines • Show All 161 Lines • ▼ Show 20 Line(s) | |||||
691 | 695 | | |||
692 | <context name="In Define" attribute="Preprocessor" lineEndContext="#pop"> | 696 | <context name="In Define" attribute="Preprocessor" lineEndContext="#pop"> | ||
693 | <DetectSpaces/> | 697 | <DetectSpaces/> | ||
694 | <IncludeRules context="InPreprocessor" /> | 698 | <IncludeRules context="InPreprocessor" /> | ||
695 | <!-- Match scope regions --> | 699 | <!-- Match scope regions --> | ||
696 | <AnyChar attribute="Symbol" context="#stay" String="{}" /> | 700 | <AnyChar attribute="Symbol" context="#stay" String="{}" /> | ||
697 | <!-- Detect attributes --> | 701 | <!-- Detect attributes --> | ||
698 | <Detect2Chars attribute="Symbol" context="Attribute In PP" char="[" char1="[" /> | 702 | <Detect2Chars attribute="Symbol" context="Attribute In PP" char="[" char1="[" /> | ||
703 | <StringDetect attribute="Symbol" context="Attribute In PP" String="<:<:" /> <!-- Digraph: [[ --> | ||||
699 | <!-- Match numbers --> | 704 | <!-- Match numbers --> | ||
700 | <RegExpr attribute="Decimal" context="Number" String="\.?[0-9]" lookAhead="true" /> | 705 | <RegExpr attribute="Decimal" context="Number" String="\.?[0-9]" lookAhead="true" /> | ||
701 | <!-- Match comments --> | 706 | <!-- Match comments --> | ||
702 | <IncludeRules context="match comments" /> | 707 | <IncludeRules context="match comments" /> | ||
703 | <!-- Match punctuators --> | 708 | <!-- Match punctuators --> | ||
704 | <AnyChar attribute="Separator Symbol" context="#stay" String="&separators;" /> | 709 | <AnyChar attribute="Separator Symbol" context="#stay" String="&separators;" /> | ||
705 | <AnyChar attribute="Symbol" context="#stay" String="&punctuators;" /> | 710 | <AnyChar attribute="Symbol" context="#stay" String="&punctuators;" /> | ||
706 | <!-- Match keywords --> | 711 | <!-- Match keywords --> | ||
▲ Show 20 Lines • Show All 131 Lines • Show Last 20 Lines |