diff options
Diffstat (limited to 'kate/data/cmake.xml')
-rw-r--r-- | kate/data/cmake.xml | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/kate/data/cmake.xml b/kate/data/cmake.xml index 07a6a00d4..7bec01e11 100644 --- a/kate/data/cmake.xml +++ b/kate/data/cmake.xml @@ -5,7 +5,7 @@ Copyright 2004 Alexander Neundorf (neundorf@kde.org) Copyright 2005 Dominik Haumann (dhdev@gmx.de) - Copyright 2007,2008 Matthew Woehlke (mw_triad@users.sourceforge.net) + Copyright 2007,2008,2013 Matthew Woehlke (mw_triad@users.sourceforge.net) Copyright 2013 Alex Turbov (i.zaufi@gmail.com) ********************************************************************** @@ -26,7 +26,7 @@ ********************************************************************** --> <!-- generated for "cmake version 2.8.11.1" --> -<language name="CMake" version="1.24" kateversion="2.5" section="Other" extensions="CMakeLists.txt;*.cmake;" mimetype="" author="Alexander Neundorf (neundorf@kde.org)" license="LGPL"> +<language name="CMake" version="1.25" kateversion="2.5" section="Other" extensions="CMakeLists.txt;*.cmake;" mimetype="" author="Alexander Neundorf (neundorf@kde.org)" license="LGPL"> <highlighting> <!-- ATTENTION Do not change the list name! Or change a generation script accordingly --> @@ -783,6 +783,7 @@ <item> TARGET_LINKER_DIR </item> <item> TARGET_SONAME_DIR </item> <item> TARGET_PROPERTY </item> + <item> TARGET_OBJECTS </item> <item> TARGET_POLICY </item> <item> AND </item> <item> OR </item> @@ -815,6 +816,8 @@ <keyword attribute="Third-Party Commands" context="#stay" String="itkvtk_commands" insensitive="true"/> <RegExpr attribute="Region Marker" context="#stay" String="#\s*BEGIN.*$" beginRegion="block" firstNonSpace="true"/> <RegExpr attribute="Region Marker" context="#stay" String="#\s*END.*$" endRegion="block" firstNonSpace="true"/> + <RegExpr attribute="Region Marker" context="RST Documentation" String="^#\[(=*)\[\.rst:" column="0" /> + <RegExpr attribute="Comment" context="Bracketed Comment" String="^#\[(=*)\[" column="0" /> <DetectChar attribute="Comment" context="Comment" char="#"/> <IncludeRules context="Detect Variables"/> <RegExpr attribute="Macros" context="Macro Args" String="\w+\s*(?=\()"/> @@ -900,6 +903,7 @@ <!-- TODO Hmm... this rule looks strange... being in the Normal context --> <StringDetect attribute="Escapes" context="#stay" String="\""/> <DetectChar attribute="Strings" context="String" char="""/> + <RegExpr attribute="Strings" context="Bracketed String" String="\[(=*)\[" /> <DetectChar attribute="Comment" context="Comment" char="#"/> <IncludeRules context="Detect Builtin Variables"/> <IncludeRules context="Detect Variables"/> @@ -909,12 +913,24 @@ <IncludeRules context="##Alerts" /> <IncludeRules context="##Modelines" /> </context> + <context attribute="Comment" lineEndContext="#stay" name="RST Documentation" dynamic="true"> + <RegExpr attribute="Region Marker" context="#pop" String="^#?\]%1\]" dynamic="true" column="0" /> + <IncludeRules context="##reStructuredText" /> + </context> + <context attribute="Comment" lineEndContext="#stay" name="Bracketed Comment" dynamic="true"> + <RegExpr attribute="Comment" context="#pop" String="^#?\]%1\]" dynamic="true" column="0" /> + <IncludeRules context="##Alerts" /> + <IncludeRules context="##Modelines" /> + </context> <context attribute="Strings" lineEndContext="#stay" name="String"> <RegExpr attribute="Strings" context="#pop" String=""(?=[ );]|$)" /> <RegExpr attribute="Escapes" context="#stay" String="\\["$n\\]" /> <IncludeRules context="Detect Variables"/> <IncludeRules context="Detect Generator Expressions"/> </context> + <context attribute="Strings" lineEndContext="#stay" name="Bracketed String" dynamic="true"> + <RegExpr attribute="Strings" context="#pop" String="\]%1\]" dynamic="true" /> + </context> </contexts> <itemDatas> |