author | mickeyl <mickeyl> | 2003-01-24 21:13:38 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-01-24 21:13:38 (UTC) |
commit | f5fa70864c66da0f12f3d34f6451c74e3bfb3103 (patch) (side-by-side diff) | |
tree | ad6585cc10ba3397bed82c87a1b692fa0a4b9e43 /share/tinykate/syntax/cpp.xml | |
parent | 67699ef8fd807a99c08d6401a67e8000bca8f1ca (diff) | |
download | opie-f5fa70864c66da0f12f3d34f6451c74e3bfb3103.zip opie-f5fa70864c66da0f12f3d34f6451c74e3bfb3103.tar.gz opie-f5fa70864c66da0f12f3d34f6451c74e3bfb3103.tar.bz2 |
added syntax highlighting patterns to tinykate
Diffstat (limited to 'share/tinykate/syntax/cpp.xml') (more/less context) (ignore whitespace changes)
-rw-r--r-- | share/tinykate/syntax/cpp.xml | 100 |
1 files changed, 56 insertions, 44 deletions
diff --git a/share/tinykate/syntax/cpp.xml b/share/tinykate/syntax/cpp.xml index 889457c..8dda2a9 100644 --- a/share/tinykate/syntax/cpp.xml +++ b/share/tinykate/syntax/cpp.xml @@ -2,3 +2,3 @@ <!DOCTYPE language SYSTEM "language.dtd"> -<language name="C++" section="Sources" extensions="*.cxx;*.cpp;*.cc;*.C;*.h" mimetype="text/x-c++-src;text/x-c++-hdr;text/x-c-hdr;text/x-c++-src"> +<language name="C++" version="1.01" kateversion="2.0" section="Sources" extensions="*.cxx;*.cpp;*.cc;*.C;*.h" mimetype="text/x-c++src;text/x-c++hdr;text/x-chdr;text/x-c++src"> <highlighting> @@ -19,2 +19,3 @@ <item> dynamic_cast</item> + <item> explicit </item> <item> template </item> @@ -24,2 +25,3 @@ <item> try </item> + <item> catch </item> <item> typeid </item> @@ -108,49 +110,53 @@ <contexts> - <context attribute="0" lineEndContext="0" name="Normal"> - <keyword attribute="1" context="0" String="keywords" /> - <keyword attribute="2" context="0" String="types" /> - <Float attribute="6" context="0"> - <AnyChar String="fF" attribute="6" context="0"/> + <context attribute="0" lineEndContext="#stay" name="Normal"> + <RegExpr attribute="3" context="#stay" String="//BEGIN.*$" beginRegion="Region1"/> + <RegExpr attribute="3" context="#stay" String="//END.*$" endRegion="Region1"/> + <keyword attribute="1" context="#stay" String="keywords" /> + <keyword attribute="2" context="#stay" String="types" /> + <Float attribute="6" context="#stay"> + <AnyChar String="fF" attribute="6" context="#stay"/> </Float> - <HlCOct attribute="4" context="0"/> - <HlCHex attribute="5" context="0"/> - <Int attribute="3" context="0" > - <StringDetect attribute="3" context="0" String="ULL" insensitive="TRUE"/> - <StringDetect attribute="3" context="0" String="LUL" insensitive="TRUE"/> - <StringDetect attribute="3" context="0" String="LLU" insensitive="TRUE"/> - <StringDetect attribute="3" context="0" String="UL" insensitive="TRUE"/> - <StringDetect attribute="3" context="0" String="LU" insensitive="TRUE"/> - <StringDetect attribute="3" context="0" String="LL" insensitive="TRUE"/> - <StringDetect attribute="3" context="0" String="U" insensitive="TRUE"/> - <StringDetect attribute="3" context="0" String="L" insensitive="TRUE"/> + <HlCOct attribute="4" context="#stay"/> + <HlCHex attribute="5" context="#stay"/> + <Int attribute="3" context="#stay" > + <StringDetect attribute="3" context="#stay" String="ULL" insensitive="TRUE"/> + <StringDetect attribute="3" context="#stay" String="LUL" insensitive="TRUE"/> + <StringDetect attribute="3" context="#stay" String="LLU" insensitive="TRUE"/> + <StringDetect attribute="3" context="#stay" String="UL" insensitive="TRUE"/> + <StringDetect attribute="3" context="#stay" String="LU" insensitive="TRUE"/> + <StringDetect attribute="3" context="#stay" String="LL" insensitive="TRUE"/> + <StringDetect attribute="3" context="#stay" String="U" insensitive="TRUE"/> + <StringDetect attribute="3" context="#stay" String="L" insensitive="TRUE"/> </Int> - <HlCChar attribute="7" context="0"/> - <DetectChar attribute="8" context="1" char="""/> - <Detect2Chars attribute="10" context="2" char="/" char1="/"/> - <Detect2Chars attribute="10" context="3" char="/" char1="*"/> - <AnyChar attribute="11" context="0" String="!%&()+,-<=>?[]^{|}~"/> - <StringDetect attribute="10" context="8" String="#if 0" insensitive="FALSE"/> - <RegExpr attribute="12" context="4" String="^#"/> + <HlCChar attribute="7" context="#stay"/> + <DetectChar attribute="8" context="String" char="""/> + <Detect2Chars attribute="10" context="Commentar 1" char="/" char1="/"/> + <Detect2Chars attribute="10" context="Commentar 2" char="/" char1="*" beginRegion="Comment"/> + <DetectChar attribute="0" context="#stay" char="{" beginRegion="Brace1" /> + <DetectChar attribute="0" context="#stay" char="}" endRegion="Brace1" /> + <AnyChar attribute="11" context="#stay" String="!%&()+,-<=>?[]^{|}~"/> + <StringDetect attribute="12" context="8" String="#if 0" insensitive="FALSE"/> + <RegExpr attribute="12" context="4" String="#"/> </context> - <context attribute="8" lineEndContext="0" name="String"> - <LineContinue attribute="8" context="6"/> - <HlCStringChar attribute="9" context="1"/> - <DetectChar attribute="8" context="0" char="""/> + <context attribute="8" lineEndContext="#pop" name="String"> + <LineContinue attribute="8" context="#stay"/> + <HlCStringChar attribute="9" context="#stay"/> + <DetectChar attribute="8" context="#pop" char="""/> </context> - <context attribute="10" lineEndContext="0" name="Commentar 1"> - <RegExpr attribute="3" context="2" String="(FIXME|TODO)" /> + <context attribute="10" lineEndContext="#pop" name="Commentar 1"> + <RegExpr attribute="3" context="#stay" String="(FIXME|TODO)" /> </context> - <context attribute="10" lineEndContext="3" name="Commentar 2"> - <RegExpr attribute="3" context="3" String="(FIXME|TODO)" /> - <Detect2Chars attribute="10" context="0" char="*" char1="/"/> + <context attribute="10" lineEndContext="#stay" name="Commentar 2"> + <RegExpr attribute="3" context="#stay" String="(FIXME|TODO)" /> + <Detect2Chars attribute="10" context="#pop" char="*" char1="/" endRegion="Comment"/> </context> - <context attribute="12" lineEndContext="0" name="Preprocessor"> - <LineContinue attribute="12" context="7"/> - <RangeDetect attribute="13" context="4" char=""" char1="""/> - <RangeDetect attribute="13" context="4" char="<" char1=">"/> - <Detect2Chars attribute="10" context="2" char="/" char1="/"/> - <Detect2Chars attribute="10" context="5" char="/" char1="*"/> + <context attribute="12" lineEndContext="#pop" name="Preprocessor"> + <LineContinue attribute="12" context="#stay"/> + <RangeDetect attribute="13" context="#stay" char=""" char1="""/> + <RangeDetect attribute="13" context="#stay" char="<" char1=">"/> + <Detect2Chars attribute="10" context="Commentar 1" char="/" char1="/"/> + <Detect2Chars attribute="10" context="Commentar/Preprocessor" char="/" char1="*"/> </context> - <context attribute="10" lineEndContext="5" name="Commentar/Preprocessor"> - <Detect2Chars attribute="10" context="4" char="*" char1="/" /> + <context attribute="10" lineEndContext="#stay" name="Commentar/Preprocessor"> + <Detect2Chars attribute="10" context="#pop" char="*" char1="/" /> </context> @@ -158,5 +164,11 @@ <context attribute="0" lineEndContext="4" name="Some Context2"/> - <context attribute="10" lineEndContext="8"> - <RegExpr attribute="3" context="8" String="(FIXME|TODO)" /> - <RegExpr attribute="10" context="0" String="^#endif" /> + <context attribute="10" lineEndContext="#stay"> + <RegExpr attribute="3" context="#stay" String="(FIXME|TODO)" /> + <RegExpr attribute="10" context="9" String="#if" /> + <RegExpr attribute="12" context="#pop" String="#endif" /> + <RegExpr attribute="12" context="#pop" String="#else" /> + </context> + <context attribute="10" lineEndContext="#stay"> + <RegExpr attribute="10" context="9" String="#if" /> + <RegExpr attribute="10" context="#pop" String="#endif" /> </context> |