diff options
Diffstat (limited to 'kate/data/doxygen.xml')
-rw-r--r-- | kate/data/doxygen.xml | 100 |
1 files changed, 67 insertions, 33 deletions
diff --git a/kate/data/doxygen.xml b/kate/data/doxygen.xml index a464c98d0..f5c47f129 100644 --- a/kate/data/doxygen.xml +++ b/kate/data/doxygen.xml @@ -1,29 +1,32 @@ <?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE language SYSTEM "language.dtd"> +<!DOCTYPE language SYSTEM "language.dtd" +[ + <!ENTITY wordsep "([][,?;()]|\.$|\.?\s)"> <!-- things that end a TagWord --> +]> <!-- This file is part of KDE's kate project. - copyright : (C) 2004 by Dominik Haumann - email : dhdev at gmx dot de + Copyright 2004 Dominik Haumann (dhdev@gmx.de) + Copyright 2007 Matthew Woehlke (mw_triad@users.sourceforge.net) ********************************************************************** * This library is free software; you can redistribute it and/or * - * modify it under the terms of the GNU Library General Public * + * modify it under the terms of the GNU Lesser General Public * * License as published by the Free Software Foundation; either * * version 2 of the License, or (at your option) any later version. * * * * This library is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * - * Library General Public License for more details. * + * Lesser General Public License for more details. * * * - * You should have received a copy of the GNU Library General Public * + * You should have received a copy of the GNU Lesser General Public * * License along with this library; if not, write to the * - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * * Boston, MA 02110-1301, USA. * ********************************************************************** --> -<language name="Doxygen" version="1.25" kateversion="2.4" section="Markup" extensions="*.dox;*.doxygen" mimetype="text/x-doxygen" author="Dominik Haumann (dhdev@gmx.de)" license="LGPL"> +<language name="Doxygen" version="1.30" kateversion="2.4" section="Markup" extensions="*.dox;*.doxygen" mimetype="text/x-doxygen" author="Dominik Haumann (dhdev@gmx.de)" license="LGPL" priority="9"> <highlighting> <!-- note: all tags may begin with a \ or @ char so if you add/change tags you have to do it twice --> @@ -36,6 +39,7 @@ <item> \dot </item> <item> \else </item> <item> \endcode </item> + <item> \endcond </item> <item> \enddot </item> <item> \endhtmlonly </item> <item> \endif </item> @@ -64,7 +68,6 @@ <item> \nosubgrouping </item> <item> \note </item> <item> \only </item> - <item> \par </item> <item> \post </item> <item> \pre </item> <item> \remarks </item> @@ -88,6 +91,7 @@ <item> @dot </item> <item> @else </item> <item> @endcode </item> + <item> @endcond </item> <item> @enddot </item> <item> @endhtmlonly </item> <item> @endif </item> @@ -116,7 +120,6 @@ <item> @nosubgrouping </item> <item> @note </item> <item> @only </item> - <item> @par </item> <item> @post </item> <item> @pre </item> <item> @remarks </item> @@ -140,6 +143,7 @@ <item> \b </item> <item> \c </item> <item> \class </item> + <item> \cond </item> <item> \copydoc </item> <item> \def </item> <item> \dontinclude </item> @@ -160,7 +164,6 @@ <item> \namespace </item> <item> \p </item> <item> \package </item> - <item> \param </item> <item> \ref </item> <item> \relatesalso </item> <item> \relates </item> @@ -177,6 +180,7 @@ <item> @b </item> <item> @c </item> <item> @class </item> + <item> @cond </item> <item> @copydoc </item> <item> @def </item> <item> @dontinclude </item> @@ -197,7 +201,6 @@ <item> @namespace </item> <item> @p </item> <item> @package </item> - <item> @param </item> <item> @ref </item> <item> @relatesalso </item> <item> @relates </item> @@ -208,6 +211,11 @@ <item> @version </item> <item> @xrefitem </item> </list> + <list name="TagParam"> + <item> \param </item> + + <item> @param </item> + </list> <list name="TagWordWord"> <item> \image </item> @@ -246,6 +254,7 @@ <item> \mainpage </item> <item> \name </item> <item> \overload </item> + <item> \par </item> <item> \short </item> <item> \skip </item> <item> \skipline </item> @@ -264,6 +273,7 @@ <item> @mainpage </item> <item> @name </item> <item> @overload </item> + <item> @par </item> <item> @short </item> <item> @skip </item> <item> @skipline </item> @@ -281,72 +291,85 @@ --> <context attribute="Normal Text" lineEndContext="#stay" name="Normal"> <RegExpr attribute="Comment" context="LineComment" String="//(!|(/(?=[^/]|$)))<?"/> - <RegExpr attribute="Comment" context="BlockComment" String="/\*(\*[^*/]|!|\*$)<?" beginRegion="BlockComment"/> + <RegExpr attribute="Comment" context="BlockComment" String="/\*(\*[^*/]|!|[*!]<|\*$)" beginRegion="BlockComment"/> + <RegExpr attribute="Region" context="#stay" String="//\s*@\{\s*$" beginRegion="MemberGroup"/> + <RegExpr attribute="Region" context="#stay" String="//\s*@\}\s*$" endRegion="MemberGroup"/> + <RegExpr attribute="Region" context="#stay" String="/\*\s*@\{\s*\*/" beginRegion="MemberGroup"/> + <RegExpr attribute="Region" context="#stay" String="/\*\s*@\}\s*\*/" endRegion="MemberGroup"/> </context> <context attribute="Comment" lineEndContext="#pop" name="LineComment"> + <LineContinue attribute="Comment" context="#stay"/> <DetectSpaces /> <IncludeRules context="##Alerts" /> <keyword attribute="Tags" context="#stay" String="TagOnly" /> <keyword attribute="Tags" context="SL_TagWord" String="TagWord" /> + <keyword attribute="Tags" context="SL_TagParam" String="TagParam" /> <keyword attribute="Tags" context="SL_TagWordWord" String="TagWordWord" /> <keyword attribute="Tags" context="SL_TagString" String="TagString" /> <keyword attribute="Tags" context="SL_TagWordString" String="TagWordString" /> <DetectIdentifier /> <StringDetect attribute="HTML Comment" context="SL_htmlcomment" String="<!--" /> <Detect2Chars attribute="Comment" context="#stay" char="<" char1="<" /> - <RegExpr attribute="HTML Tag" context="SL_htmltag" String="<\s*\/?\s*[a-zA-Z_:][a-zA-Z0-9._:-]*" /> + <RegExpr attribute="HTML Tag" context="SL_htmltag" String="<\/?[a-zA-Z_:][a-zA-Z0-9._:-]*" /> </context> <context attribute="Comment" lineEndContext="#stay" name="BlockComment"> <DetectSpaces /> <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="BlockComment"/> <IncludeRules context="##Alerts" /> + <Detect2Chars attribute="Region" context="#stay" char="@" char1="{" /> + <Detect2Chars attribute="Region" context="#stay" char="@" char1="}" /> <keyword attribute="Tags" context="#stay" String="TagOnly" /> <keyword attribute="Tags" context="ML_TagWord" String="TagWord" /> + <keyword attribute="Tags" context="ML_TagParam" String="TagParam" /> <keyword attribute="Tags" context="ML_TagWordWord" String="TagWordWord" /> <keyword attribute="Tags" context="ML_TagString" String="TagString" /> <keyword attribute="Tags" context="ML_TagWordString" String="TagWordString" /> <DetectIdentifier /> <RegExpr attribute="Tags" context="#stay" String="\\(<|>)" /> <Detect2Chars attribute="Comment" context="#stay" char="<" char1="<" /> - <RegExpr attribute="HTML Tag" context="ML_htmltag" String="<\s*\/?\s*[a-zA-Z_:][a-zA-Z0-9._:-]*" /> + <RegExpr attribute="HTML Tag" context="ML_htmltag" String="<\/?[a-zA-Z_:][a-zA-Z0-9._:-]*" /> <StringDetect attribute="HTML Comment" context="ML_htmlcomment" String="<!--" /> </context> <!-- NOTE: all contexts beginning with ML_ are for multiline comments - The following contexts contain a Detect2Chars that looks for a */ sequence to end multiline comments. Singleline comments do not have this limitation - that's why all contexts are copy&pasted and the line <Detect2Chars ... */> is removed. <IncludeRules context="acontext"> could be used instead but it would make context switching much more complex and very hard to understand! + The following contexts contain a Detect2Chars that looks for a */ sequence to end multiline comments. Singleline comments do not have this limitation - that's why all contexts are copy&pasted and the line <Detect2Chars ... */> is removed. <IncludeRules context="acontext"> could be used instead but it would make context switching much more complex and very hard to understand! (But use IncludeRules where the rules don't refer to another SL_*/ML_* context, to help maintainability.) --> <!-- tag contexts --> <context attribute="Comment" lineEndContext="#pop" name="ML_TagWord"> <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true"/> - <DetectSpaces /> - <RegExpr attribute="Word" context="#pop" String="\S\s" /> - <RegExpr attribute="Word" context="#stay" String="\S" /> + <IncludeRules context="SL_TagWord" /> </context> - <context attribute="Comment" lineEndContext="#pop" name="ML_TagWordWord"> + <context attribute="Comment" lineEndContext="#pop" name="ML_TagParam"> <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true"/> <DetectSpaces /> - <RegExpr attribute="Word" context="#pop" String="\S\s" /> + <StringDetect attribute="Tags" context="ML_Tag2ndWord" String="[in]" /> + <StringDetect attribute="Tags" context="ML_Tag2ndWord" String="[out]" /> + <StringDetect attribute="Tags" context="ML_Tag2ndWord" String="[in,out]" /> + <RegExpr attribute="Word" context="#pop" String="\S(?=&wordsep;)" /> <RegExpr attribute="Word" context="#stay" String="\S" /> </context> - <context attribute="Comment" lineEndContext="#pop" name="ML_Tag2ndWord"> + <context attribute="Comment" lineEndContext="#pop" name="ML_TagWordWord"> <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true"/> <DetectSpaces /> - <RegExpr attribute="Word" context="#pop" String="\S\s" /> + <RegExpr attribute="Word" context="ML_Tag2ndWord" String="\S(?=&wordsep;)" /> <RegExpr attribute="Word" context="#stay" String="\S" /> </context> + <!-- TODO for kate 2.x, convert references to "#pop!ML_TagWord" --> + <context attribute="Comment" lineEndContext="#pop#pop" name="ML_Tag2ndWord"> + <Detect2Chars attribute="Comment" context="#pop#pop" char="*" char1="/" lookAhead="true"/> + <IncludeRules context="SL_Tag2ndWord" /> + </context> <context attribute="Comment" lineEndContext="#pop" name="ML_TagString"> <DetectSpaces /> <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true"/> <StringDetect attribute="HTML Comment" context="ML_htmlcomment" String="<!--" /> <Detect2Chars attribute="Comment" context="#stay" char="<" char1="<" /> - <RegExpr attribute="HTML Tag" context="ML_htmltag" String="<\s*\/?\s*[a-zA-Z_:][a-zA-Z0-9._:-]*" /> + <RegExpr attribute="HTML Tag" context="ML_htmltag" String="<\/?[a-zA-Z_:][a-zA-Z0-9._:-]*" /> <RegExpr attribute="Description" context="#stay" String="." /> </context> <context attribute="Comment" lineEndContext="#pop" name="ML_TagWordString"> <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true"/> - <DetectSpaces /> - <RegExpr attribute="Word" context="#pop" String="\S\s" /> - <RegExpr attribute="Word" context="#stay" String="\S" /> + <IncludeRules context="SL_TagWordString" /> </context> <!-- html contexts --> @@ -380,29 +403,39 @@ <!-- tag contexts --> <context attribute="Comment" lineEndContext="#pop" name="SL_TagWord"> <DetectSpaces /> - <RegExpr attribute="Word" context="#pop" String="\S\s" /> + <keyword attribute="Tags" context="#pop" String="TagWord" lookAhead="true"/> + <RegExpr attribute="Word" context="#pop" String="\S(?=&wordsep;)" /> + <RegExpr attribute="Word" context="#stay" String="\S" /> + </context> + <context attribute="Comment" lineEndContext="#pop" name="SL_TagParam"> + <DetectSpaces /> + <StringDetect attribute="Tags" context="SL_Tag2ndWord" String="[in]" /> + <StringDetect attribute="Tags" context="SL_Tag2ndWord" String="[out]" /> + <StringDetect attribute="Tags" context="SL_Tag2ndWord" String="[in,out]" /> + <RegExpr attribute="Word" context="#pop" String="\S(?=&wordsep;)" /> <RegExpr attribute="Word" context="#stay" String="\S" /> </context> <context attribute="Comment" lineEndContext="#pop" name="SL_TagWordWord"> <DetectSpaces /> - <RegExpr attribute="Word" context="#pop" String="\S\s" /> + <RegExpr attribute="Word" context="SL_Tag2ndWord" String="\S(?=&wordsep;)" /> <RegExpr attribute="Word" context="#stay" String="\S" /> </context> - <context attribute="Comment" lineEndContext="#pop" name="SL_Tag2ndWord"> + <!-- TODO for kate 2.x, convert references to "#pop!SL_TagWord" --> + <context attribute="Comment" lineEndContext="#pop#pop" name="SL_Tag2ndWord"> <DetectSpaces /> - <RegExpr attribute="Word" context="#pop" String="\S\s" /> + <RegExpr attribute="Word" context="#pop#pop" String="\S(?=&wordsep;)" /> <RegExpr attribute="Word" context="#stay" String="\S" /> </context> <context attribute="Comment" lineEndContext="#pop" name="SL_TagString"> <DetectSpaces /> <StringDetect attribute="HTML Comment" context="SL_htmlcomment" String="<!--" /> <Detect2Chars attribute="Comment" context="#stay" char="<" char1="<" /> - <RegExpr attribute="HTML Tag" context="SL_htmltag" String="<\s*\/?\s*[a-zA-Z_:][a-zA-Z0-9._:-]*" /> + <RegExpr attribute="HTML Tag" context="SL_htmltag" String="<\/?[a-zA-Z_:][a-zA-Z0-9._:-]*" /> <RegExpr attribute="Description" context="#stay" String="." /> </context> <context attribute="Comment" lineEndContext="#pop" name="SL_TagWordString"> <DetectSpaces /> - <RegExpr attribute="Word" context="#pop" String="\S\s" /> + <RegExpr attribute="Word" context="#pop" String="\S(?=&wordsep;)" /> <RegExpr attribute="Word" context="#stay" String="\S" /> </context> @@ -436,6 +469,7 @@ <itemData name="HTML Tag" defStyleNum="dsKeyword" color="#000000" selColor="#ffffff" bold="1" italic="0" /> <itemData name="Description" defStyleNum="dsString" color="#ff0000" /> <itemData name="Comment" defStyleNum="dsComment" color="#0000ff" selColor="#ffffff" italic="1" /> + <itemData name="Region" defStyleNum="dsRegionMarker" /> <itemData name="Identifier" defStyleNum="dsOthers" /> <itemData name="HTML Comment" defStyleNum="dsComment" /> <itemData name="Types" defStyleNum="dsDataType" /> |