summaryrefslogtreecommitdiffstats
path: root/kate/data/cmake.xml
diff options
context:
space:
mode:
Diffstat (limited to 'kate/data/cmake.xml')
-rw-r--r--kate/data/cmake.xml420
1 files changed, 393 insertions, 27 deletions
diff --git a/kate/data/cmake.xml b/kate/data/cmake.xml
index 600caf3df..07a6a00d4 100644
--- a/kate/data/cmake.xml
+++ b/kate/data/cmake.xml
@@ -6,6 +6,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 2013 Alex Turbov (i.zaufi@gmail.com)
**********************************************************************
* This library is free software; you can redistribute it and/or *
@@ -24,10 +25,11 @@
* Boston, MA 02110-1301, USA. *
**********************************************************************
-->
-<!-- generated for "cmake version 2.8.1" -->
-<language name="CMake" version="1.13" kateversion="2.4" section="Other" extensions="CMakeLists.txt;*.cmake;" mimetype="" author="Alexander Neundorf (neundorf@kde.org)" license="LGPL">
+<!-- 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">
<highlighting>
+ <!-- ATTENTION Do not change the list name! Or change a generation script accordingly -->
<list name = "commands">
<!-- generated list -->
<item> add_custom_command </item>
@@ -115,6 +117,8 @@
<item> string </item>
<item> subdir_depends </item>
<item> subdirs </item>
+ <item> target_compile_definitions </item>
+ <item> target_include_directories </item>
<item> target_link_libraries </item>
<item> try_compile </item>
<item> try_run </item>
@@ -135,24 +139,24 @@
<item> vtk_wrap_tcl </item>
</list>
+ <!-- ATTENTION Do not change the list name! Or change a generation script accordingly -->
<list name="special_args">
<!-- generated list -->
- <item> A </item>
- <item> ABSOLUTE </item>
<item> AFTER </item>
<item> ALL </item>
<item> ALPHABET </item>
<item> AND </item>
<item> APPEND </item>
+ <item> APPEND_STRING </item>
<item> ARCHIVE </item>
<item> ARGS </item>
<item> ASCII </item>
<item> AUTHOR_WARNING </item>
- <item> B </item>
<item> BEFORE </item>
<item> BRIEF_DOCS </item>
<item> BUNDLE </item>
<item> CACHE </item>
+ <item> CACHED_VARIABLE </item>
<item> CLEAR </item>
<item> CMAKE_FIND_ROOT_PATH_BOTH </item>
<item> CMAKE_FLAGS </item>
@@ -166,12 +170,15 @@
<item> COMPILE_RESULT_VAR </item>
<item> COMPONENT </item>
<item> COMPONENTS </item>
+ <item> CONFIG </item>
<item> CONFIGS </item>
<item> CONFIGURATION </item>
<item> CONFIGURATIONS </item>
<item> CONFIGURE </item>
+ <item> COPY </item>
<item> COPYONLY </item>
<item> COPY_FILE </item>
+ <item> CRLF </item>
<item> DEFINED </item>
<item> DEFINITION </item>
<item> DEPENDS </item>
@@ -179,6 +186,7 @@
<item> DIRECTORY </item>
<item> DIRECTORY_PERMISSIONS </item>
<item> DOC </item>
+ <item> DOS </item>
<item> DOWNLOAD </item>
<item> ENV </item>
<item> EQUAL </item>
@@ -191,9 +199,10 @@
<item> EXCLUDE </item>
<item> EXCLUDE_FROM_ALL </item>
<item> EXISTS </item>
+ <item> EXPECTED_HASH </item>
+ <item> EXPECTED_MD5 </item>
<item> EXPORT </item>
<item> EXPR </item>
- <item> EXT </item>
<item> EXTRA_INCLUDE </item>
<item> FATAL_ERROR </item>
<item> FILE </item>
@@ -208,19 +217,24 @@
<item> FUNCTION </item>
<item> GET </item>
<item> GLOB </item>
+ <item> GLOBAL </item>
<item> GLOB_RECURSE </item>
<item> GREATER </item>
<item> GROUP_EXECUTE </item>
<item> GROUP_READ </item>
+ <item> GUID </item>
<item> HEX </item>
<item> HINTS </item>
<item> IMPLICIT_DEPENDS </item>
<item> IMPORTED </item>
<item> IN </item>
+ <item> INACTIVITY_TIMEOUT </item>
<item> INCLUDE_INTERNALS </item>
<item> INHERITED </item>
<item> INPUT_FILE </item>
<item> INSERT </item>
+ <item> INSTALL </item>
+ <item> INTERFACE </item>
<item> IS_ABSOLUTE </item>
<item> IS_DIRECTORY </item>
<item> IS_NEWER_THAN </item>
@@ -230,12 +244,16 @@
<item> LENGTH_MAXIMUM </item>
<item> LENGTH_MINIMUM </item>
<item> LESS </item>
+ <item> LF </item>
<item> LIBRARY </item>
<item> LIMIT </item>
<item> LIMIT_COUNT </item>
<item> LIMIT_INPUT </item>
<item> LIMIT_OUTPUT </item>
<item> LINK_INTERFACE_LIBRARIES </item>
+ <item> LINK_LIBRARIES </item>
+ <item> LINK_PRIVATE </item>
+ <item> LINK_PUBLIC </item>
<item> LISTS </item>
<item> LOG </item>
<item> MACOSX_BUNDLE </item>
@@ -244,15 +262,17 @@
<item> MATCH </item>
<item> MATCHALL </item>
<item> MATCHES </item>
+ <item> MD5 </item>
<item> MODULE </item>
<item> NAME </item>
<item> NAMELINK_ONLY </item>
<item> NAMELINK_SKIP </item>
<item> NAMES </item>
<item> NAMESPACE </item>
- <item> NAME_WE </item>
+ <item> NAMES_PER_DIR </item>
<item> NEW </item>
<item> NEWLINE_CONSUME </item>
+ <item> NEWLINE_STYLE </item>
<item> NOT </item>
<item> NOTEQUAL </item>
<item> NO_CMAKE_BUILDS_PATH </item>
@@ -260,6 +280,7 @@
<item> NO_CMAKE_FIND_ROOT_PATH </item>
<item> NO_CMAKE_PACKAGE_REGISTRY </item>
<item> NO_CMAKE_PATH </item>
+ <item> NO_CMAKE_SYSTEM_PACKAGE_REGISTRY </item>
<item> NO_CMAKE_SYSTEM_PATH </item>
<item> NO_DEFAULT_PATH </item>
<item> NO_HEX_CONVERSION </item>
@@ -267,10 +288,12 @@
<item> NO_POLICY_SCOPE </item>
<item> NO_SOURCE_PERMISSIONS </item>
<item> NO_SYSTEM_ENVIRONMENT_PATH </item>
+ <item> OBJECT </item>
<item> OFFSET </item>
<item> OLD </item>
<item> ONLY_CMAKE_FIND_ROOT_PATH </item>
<item> OPTIONAL </item>
+ <item> OPTIONAL_COMPONENTS </item>
<item> OR </item>
<item> OUTPUT </item>
<item> OUTPUT_DIRECTORY </item>
@@ -283,18 +306,19 @@
<item> OWNER_WRITE </item>
<item> PACKAGE </item>
<item> PARENT_SCOPE </item>
- <item> PATH </item>
<item> PATHS </item>
<item> PATH_SUFFIXES </item>
<item> PATH_TO_MESA </item>
<item> PATTERN </item>
<item> PERMISSIONS </item>
+ <item> PLATFORM </item>
<item> POLICY </item>
<item> POP </item>
<item> POST_BUILD </item>
<item> PREORDER </item>
<item> PRE_BUILD </item>
<item> PRE_LINK </item>
+ <item> PRIVATE </item>
<item> PRIVATE_HEADER </item>
<item> PROGRAM </item>
<item> PROGRAMS </item>
@@ -302,6 +326,7 @@
<item> PROJECT_NAME </item>
<item> PROPERTIES </item>
<item> PROPERTY </item>
+ <item> PUBLIC </item>
<item> PUBLIC_HEADER </item>
<item> PUSH </item>
<item> QUIET </item>
@@ -310,7 +335,6 @@
<item> RANGE </item>
<item> READ </item>
<item> READ_WITH_PREFIX </item>
- <item> REALPATH </item>
<item> REGEX </item>
<item> REGULAR_EXPRESSION </item>
<item> RELATIVE </item>
@@ -337,7 +361,13 @@
<item> SCRIPT </item>
<item> SEND_ERROR </item>
<item> SET </item>
+ <item> SHA1 </item>
+ <item> SHA224 </item>
+ <item> SHA256 </item>
+ <item> SHA384 </item>
+ <item> SHA512 </item>
<item> SHARED </item>
+ <item> SHOW_PROGRESS </item>
<item> SORT </item>
<item> SOURCE </item>
<item> SOURCES </item>
@@ -355,14 +385,21 @@
<item> TEST </item>
<item> TEST_VARIABLE </item>
<item> TIMEOUT </item>
+ <item> TIMESTAMP </item>
+ <item> TLS_CAINFO </item>
+ <item> TLS_VERIFY </item>
<item> TOLOWER </item>
<item> TOUPPER </item>
<item> TO_CMAKE_PATH </item>
<item> TO_NATIVE_PATH </item>
+ <item> TYPE </item>
+ <item> UNIX </item>
+ <item> UNIX_COMMAND </item>
+ <item> UNKNOWN </item>
+ <item> UPLOAD </item>
<item> USE_SOURCE_PERMISSIONS </item>
+ <item> UTC </item>
<item> VALUE </item>
- <item> VAR </item>
- <item> VAR2 </item>
<item> VARIABLE </item>
<item> VERBATIM </item>
<item> VERSION </item>
@@ -371,16 +408,29 @@
<item> VERSION_LESS </item>
<item> WARNING </item>
<item> WIN32 </item>
+ <item> WINDOWS_COMMAND </item>
<item> WORKING_DIRECTORY </item>
<item> WRITE </item>
</list>
<!-- these are "special" and don't show up in the generated lists -->
<list name="extra_special_args">
- <item> GLOBAL </item>
+ <!-- get_filename_component() has <COMP> placeholder for the following special args -->
+ <item> PATH </item>
+ <item> NAME </item>
+ <item> EXT </item>
+ <item> NAME_WE </item>
+ <item> ABSOLUTE </item>
+ <item> REALPATH </item>
+ <!-- set() has <type> placeholder for the following special args -->
+ <item> FILEPATH </item>
+ <!-- PATH already present above -->
+ <item> STRING </item>
+ <item> BOOL </item>
<item> INTERNAL </item>
</list>
+ <!-- ATTENTION Do not change the list name! Or change a generation script accordingly -->
<list name="properties">
<!-- generated list -->
<item> ABSTRACT </item>
@@ -391,9 +441,15 @@
<item> ARCHIVE_OUTPUT_NAME </item>
<item> ATTACHED_FILES </item>
<item> ATTACHED_FILES_ON_FAIL </item>
+ <item> AUTOMOC </item>
+ <item> AUTOMOC_MOC_OPTIONS </item>
<item> BUILD_WITH_INSTALL_RPATH </item>
+ <item> BUNDLE </item>
+ <item> BUNDLE_EXTENSION </item>
<item> CACHE_VARIABLES </item>
<item> CLEAN_NO_CUSTOM </item>
+ <item> COMPATIBLE_INTERFACE_BOOL </item>
+ <item> COMPATIBLE_INTERFACE_STRING </item>
<item> COMPILE_DEFINITIONS </item>
<item> COMPILE_FLAGS </item>
<item> COST </item>
@@ -408,17 +464,21 @@
<item> ENABLE_EXPORTS </item>
<item> ENVIRONMENT </item>
<item> EXCLUDE_FROM_ALL </item>
+ <item> EXCLUDE_FROM_DEFAULT_BUILD </item>
<item> EXTERNAL_OBJECT </item>
<item> EchoString </item>
<item> FAIL_REGULAR_EXPRESSION </item>
<item> FIND_LIBRARY_USE_LIB64_PATHS </item>
<item> FIND_LIBRARY_USE_OPENBSD_VERSIONING </item>
+ <item> FOLDER </item>
<item> FRAMEWORK </item>
+ <item> Fortran_FORMAT </item>
<item> Fortran_MODULE_DIRECTORY </item>
<item> GENERATED </item>
<item> GENERATOR_FILE_NAME </item>
<item> GLOBAL_DEPENDS_DEBUG_MODE </item>
<item> GLOBAL_DEPENDS_NO_CYCLES </item>
+ <item> GNUtoMS </item>
<item> HAS_CXX </item>
<item> HEADER_FILE_ONLY </item>
<item> HELPSTRING </item>
@@ -431,6 +491,7 @@
<item> IMPORTED_LINK_INTERFACE_LIBRARIES </item>
<item> IMPORTED_LINK_INTERFACE_MULTIPLICITY </item>
<item> IMPORTED_LOCATION </item>
+ <item> IMPORTED_NO_SONAME </item>
<item> IMPORTED_SONAME </item>
<item> IMPORT_PREFIX </item>
<item> IMPORT_SUFFIX </item>
@@ -439,6 +500,9 @@
<item> INSTALL_NAME_DIR </item>
<item> INSTALL_RPATH </item>
<item> INSTALL_RPATH_USE_LINK_PATH </item>
+ <item> INTERFACE_COMPILE_DEFINITIONS </item>
+ <item> INTERFACE_INCLUDE_DIRECTORIES </item>
+ <item> INTERFACE_POSITION_INDEPENDENT_CODE </item>
<item> INTERPROCEDURAL_OPTIMIZATION </item>
<item> IN_TRY_COMPILE </item>
<item> KEEP_EXTENSION </item>
@@ -447,11 +511,15 @@
<item> LIBRARY_OUTPUT_DIRECTORY </item>
<item> LIBRARY_OUTPUT_NAME </item>
<item> LINKER_LANGUAGE </item>
+ <item> LINK_DEPENDS </item>
+ <item> LINK_DEPENDS_NO_SHARED </item>
<item> LINK_DIRECTORIES </item>
<item> LINK_FLAGS </item>
<item> LINK_INTERFACE_LIBRARIES </item>
<item> LINK_INTERFACE_MULTIPLICITY </item>
+ <item> LINK_LIBRARIES </item>
<item> LINK_SEARCH_END_STATIC </item>
+ <item> LINK_SEARCH_START_STATIC </item>
<item> LISTFILE_STACK </item>
<item> LOCATION </item>
<item> MACOSX_BUNDLE </item>
@@ -461,6 +529,7 @@
<item> MACROS </item>
<item> MEASUREMENT </item>
<item> MODIFIED </item>
+ <item> NO_SONAME </item>
<item> OBJECT_DEPENDS </item>
<item> OBJECT_OUTPUTS </item>
<item> OSX_ARCHITECTURES </item>
@@ -469,7 +538,11 @@
<item> PACKAGES_NOT_FOUND </item>
<item> PARENT_DIRECTORY </item>
<item> PASS_REGULAR_EXPRESSION </item>
+ <item> PDB_NAME </item>
+ <item> PDB_OUTPUT_DIRECTORY </item>
+ <item> POSITION_INDEPENDENT_CODE </item>
<item> POST_INSTALL_SCRIPT </item>
+ <item> PREDEFINED_TARGETS_FOLDER </item>
<item> PREFIX </item>
<item> PRE_INSTALL_SCRIPT </item>
<item> PRIVATE_HEADER </item>
@@ -479,6 +552,7 @@
<item> REPORT_UNDEFINED_PROPERTIES </item>
<item> REQUIRED_FILES </item>
<item> RESOURCE </item>
+ <item> RESOURCE_LOCK </item>
<item> RULE_LAUNCH_COMPILE </item>
<item> RULE_LAUNCH_CUSTOM </item>
<item> RULE_LAUNCH_LINK </item>
@@ -498,15 +572,23 @@
<item> TEST_INCLUDE_FILE </item>
<item> TIMEOUT </item>
<item> TYPE </item>
+ <item> USE_FOLDERS </item>
<item> VALUE </item>
<item> VARIABLES </item>
<item> VERSION </item>
+ <item> VS_DOTNET_REFERENCES </item>
+ <item> VS_GLOBAL_KEYWORD </item>
+ <item> VS_GLOBAL_PROJECT_TYPES </item>
<item> VS_KEYWORD </item>
+ <item> VS_SCC_AUXPATH </item>
<item> VS_SCC_LOCALPATH </item>
<item> VS_SCC_PROJECTNAME </item>
<item> VS_SCC_PROVIDER </item>
+ <item> VS_WINRT_EXTENSIONS </item>
+ <item> VS_WINRT_REFERENCES </item>
<item> WILL_FAIL </item>
<item> WIN32_EXECUTABLE </item>
+ <item> WORKING_DIRECTORY </item>
<item> WRAP_EXCLUDE </item>
<item> __CMAKE_DELETE_CACHE_CHANGE_VARS_ </item>
</list>
@@ -517,9 +599,218 @@
<item> DEFINITION </item>
</list>
+ <!-- ATTENTION Do not change the list name! Or change a generation script accordingly -->
+ <list name="cmake_vars">
+ <!-- generated list -->
+ <item> APPLE </item>
+ <item> BORLAND </item>
+ <item> BUILD_SHARED_LIBS </item>
+ <item> CMAKE_ABSOLUTE_DESTINATION_FILES </item>
+ <item> CMAKE_AR </item>
+ <item> CMAKE_ARCHIVE_OUTPUT_DIRECTORY </item>
+ <item> CMAKE_ARGC </item>
+ <item> CMAKE_ARGV0 </item>
+ <item> CMAKE_AUTOMOC </item>
+ <item> CMAKE_AUTOMOC_MOC_OPTIONS </item>
+ <item> CMAKE_AUTOMOC_RELAXED_MODE </item>
+ <item> CMAKE_BACKWARDS_COMPATIBILITY </item>
+ <item> CMAKE_BINARY_DIR </item>
+ <item> CMAKE_BUILD_TOOL </item>
+ <item> CMAKE_BUILD_TYPE </item>
+ <item> CMAKE_BUILD_WITH_INSTALL_RPATH </item>
+ <item> CMAKE_CACHEFILE_DIR </item>
+ <item> CMAKE_CACHE_MAJOR_VERSION </item>
+ <item> CMAKE_CACHE_MINOR_VERSION </item>
+ <item> CMAKE_CACHE_PATCH_VERSION </item>
+ <item> CMAKE_CFG_INTDIR </item>
+ <item> CMAKE_CL_64 </item>
+ <item> CMAKE_COLOR_MAKEFILE </item>
+ <item> CMAKE_COMMAND </item>
+ <item> CMAKE_COMPILER_2005 </item>
+ <item> CMAKE_CONFIGURATION_TYPES </item>
+ <item> CMAKE_CROSSCOMPILING </item>
+ <item> CMAKE_CTEST_COMMAND </item>
+ <item> CMAKE_CURRENT_BINARY_DIR </item>
+ <item> CMAKE_CURRENT_LIST_DIR </item>
+ <item> CMAKE_CURRENT_LIST_FILE </item>
+ <item> CMAKE_CURRENT_LIST_LINE </item>
+ <item> CMAKE_CURRENT_SOURCE_DIR </item>
+ <item> CMAKE_DEBUG_POSTFIX </item>
+ <item> CMAKE_DEBUG_TARGET_PROPERTIES </item>
+ <item> CMAKE_DL_LIBS </item>
+ <item> CMAKE_EDIT_COMMAND </item>
+ <item> CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION </item>
+ <item> CMAKE_EXECUTABLE_SUFFIX </item>
+ <item> CMAKE_EXE_LINKER_FLAGS </item>
+ <item> CMAKE_EXTRA_GENERATOR </item>
+ <item> CMAKE_EXTRA_SHARED_LIBRARY_SUFFIXES </item>
+ <item> CMAKE_FIND_LIBRARY_PREFIXES </item>
+ <item> CMAKE_FIND_LIBRARY_SUFFIXES </item>
+ <item> CMAKE_FIND_PACKAGE_WARN_NO_MODULE </item>
+ <item> CMAKE_Fortran_FORMAT </item>
+ <item> CMAKE_Fortran_MODDIR_DEFAULT </item>
+ <item> CMAKE_Fortran_MODDIR_FLAG </item>
+ <item> CMAKE_Fortran_MODOUT_FLAG </item>
+ <item> CMAKE_Fortran_MODULE_DIRECTORY </item>
+ <item> CMAKE_GENERATOR </item>
+ <item> CMAKE_GENERATOR_TOOLSET </item>
+ <item> CMAKE_GNUtoMS </item>
+ <item> CMAKE_HOME_DIRECTORY </item>
+ <item> CMAKE_HOST_APPLE </item>
+ <item> CMAKE_HOST_SYSTEM </item>
+ <item> CMAKE_HOST_SYSTEM_NAME </item>
+ <item> CMAKE_HOST_SYSTEM_PROCESSOR </item>
+ <item> CMAKE_HOST_SYSTEM_VERSION </item>
+ <item> CMAKE_HOST_UNIX </item>
+ <item> CMAKE_HOST_WIN32 </item>
+ <item> CMAKE_IGNORE_PATH </item>
+ <item> CMAKE_IMPORT_LIBRARY_PREFIX </item>
+ <item> CMAKE_IMPORT_LIBRARY_SUFFIX </item>
+ <item> CMAKE_INCLUDE_CURRENT_DIR </item>
+ <item> CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE </item>
+ <item> CMAKE_INCLUDE_PATH </item>
+ <item> CMAKE_INSTALL_DEFAULT_COMPONENT_NAME </item>
+ <item> CMAKE_INSTALL_NAME_DIR </item>
+ <item> CMAKE_INSTALL_PREFIX </item>
+ <item> CMAKE_INSTALL_RPATH </item>
+ <item> CMAKE_INSTALL_RPATH_USE_LINK_PATH </item>
+ <item> CMAKE_INTERNAL_PLATFORM_ABI </item>
+ <item> CMAKE_LIBRARY_ARCHITECTURE </item>
+ <item> CMAKE_LIBRARY_ARCHITECTURE_REGEX </item>
+ <item> CMAKE_LIBRARY_OUTPUT_DIRECTORY </item>
+ <item> CMAKE_LIBRARY_PATH </item>
+ <item> CMAKE_LIBRARY_PATH_FLAG </item>
+ <item> CMAKE_LINK_DEF_FILE_FLAG </item>
+ <item> CMAKE_LINK_DEPENDS_NO_SHARED </item>
+ <item> CMAKE_LINK_INTERFACE_LIBRARIES </item>
+ <item> CMAKE_LINK_LIBRARY_FILE_FLAG </item>
+ <item> CMAKE_LINK_LIBRARY_FLAG </item>
+ <item> CMAKE_LINK_LIBRARY_SUFFIX </item>
+ <item> CMAKE_MACOSX_BUNDLE </item>
+ <item> CMAKE_MAJOR_VERSION </item>
+ <item> CMAKE_MAKE_PROGRAM </item>
+ <item> CMAKE_MFC_FLAG </item>
+ <item> CMAKE_MINOR_VERSION </item>
+ <item> CMAKE_MODULE_PATH </item>
+ <item> CMAKE_NOT_USING_CONFIG_FLAGS </item>
+ <item> CMAKE_NO_BUILTIN_CHRPATH </item>
+ <item> CMAKE_OBJECT_PATH_MAX </item>
+ <item> CMAKE_PARENT_LIST_FILE </item>
+ <item> CMAKE_PATCH_VERSION </item>
+ <item> CMAKE_PDB_OUTPUT_DIRECTORY </item>
+ <item> CMAKE_POSITION_INDEPENDENT_CODE </item>
+ <item> CMAKE_PREFIX_PATH </item>
+ <item> CMAKE_PROGRAM_PATH </item>
+ <item> CMAKE_PROJECT_NAME </item>
+ <item> CMAKE_RANLIB </item>
+ <item> CMAKE_ROOT </item>
+ <item> CMAKE_RUNTIME_OUTPUT_DIRECTORY </item>
+ <item> CMAKE_SCRIPT_MODE_FILE </item>
+ <item> CMAKE_SHARED_LIBRARY_PREFIX </item>
+ <item> CMAKE_SHARED_LIBRARY_SUFFIX </item>
+ <item> CMAKE_SHARED_MODULE_PREFIX </item>
+ <item> CMAKE_SHARED_MODULE_SUFFIX </item>
+ <item> CMAKE_SIZEOF_VOID_P </item>
+ <item> CMAKE_SKIP_BUILD_RPATH </item>
+ <item> CMAKE_SKIP_INSTALL_ALL_DEPENDENCY </item>
+ <item> CMAKE_SKIP_INSTALL_RPATH </item>
+ <item> CMAKE_SKIP_RPATH </item>
+ <item> CMAKE_SOURCE_DIR </item>
+ <item> CMAKE_STANDARD_LIBRARIES </item>
+ <item> CMAKE_STATIC_LIBRARY_PREFIX </item>
+ <item> CMAKE_STATIC_LIBRARY_SUFFIX </item>
+ <item> CMAKE_SYSTEM </item>
+ <item> CMAKE_SYSTEM_IGNORE_PATH </item>
+ <item> CMAKE_SYSTEM_INCLUDE_PATH </item>
+ <item> CMAKE_SYSTEM_LIBRARY_PATH </item>
+ <item> CMAKE_SYSTEM_NAME </item>
+ <item> CMAKE_SYSTEM_PREFIX_PATH </item>
+ <item> CMAKE_SYSTEM_PROCESSOR </item>
+ <item> CMAKE_SYSTEM_PROGRAM_PATH </item>
+ <item> CMAKE_SYSTEM_VERSION </item>
+ <item> CMAKE_TRY_COMPILE_CONFIGURATION </item>
+ <item> CMAKE_TWEAK_VERSION </item>
+ <item> CMAKE_USER_MAKE_RULES_OVERRIDE </item>
+ <item> CMAKE_USE_RELATIVE_PATHS </item>
+ <item> CMAKE_VERBOSE_MAKEFILE </item>
+ <item> CMAKE_VERSION </item>
+ <item> CMAKE_VS_PLATFORM_TOOLSET </item>
+ <item> CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION </item>
+ <item> CMAKE_WIN32_EXECUTABLE </item>
+ <item> CMAKE_XCODE_PLATFORM_TOOLSET </item>
+ <item> CYGWIN </item>
+ <item> EXECUTABLE_OUTPUT_PATH </item>
+ <item> LIBRARY_OUTPUT_PATH </item>
+ <item> MSVC </item>
+ <item> MSVC10 </item>
+ <item> MSVC11 </item>
+ <item> MSVC60 </item>
+ <item> MSVC70 </item>
+ <item> MSVC71 </item>
+ <item> MSVC80 </item>
+ <item> MSVC90 </item>
+ <item> MSVC_IDE </item>
+ <item> MSVC_VERSION </item>
+ <item> PROJECT_BINARY_DIR </item>
+ <item> PROJECT_NAME </item>
+ <item> PROJECT_SOURCE_DIR </item>
+ <item> UNIX </item>
+ <item> WIN32 </item>
+ <item> XCODE_VERSION </item>
+ </list>
+
+ <list name="simple_generator_expr">
+ <item> CONFIGURATION </item>
+ <item> ANGLE-R </item>
+ <item> COMMA </item>
+ <item> SEMICOLON </item>
+ <item> INSTALL_PREFIX </item>
+ </list>
+
+ <list name="generator_expr">
+ <item> 0 </item>
+ <item> 1 </item>
+ <item> CONFIG </item>
+ <item> BOOL </item>
+ <item> STREQUAL </item>
+ <item> TARGET_NAME </item>
+ <item> INSTALL_INTERFACE </item>
+ <item> BUILD_INTERFACE </item>
+ <item> TARGET_FILE </item>
+ <item> TARGET_LINKER_FILE </item>
+ <item> TARGET_SONAME_FILE </item>
+ <item> TARGET_DIR </item>
+ <item> TARGET_LINKER_DIR </item>
+ <item> TARGET_SONAME_DIR </item>
+ <item> TARGET_PROPERTY </item>
+ <item> TARGET_POLICY </item>
+ <item> AND </item>
+ <item> OR </item>
+ <item> NOT </item>
+ </list>
+
<contexts>
<context attribute="Normal Text" lineEndContext="#stay" name="Normal Text">
<DetectSpaces/>
+
+ <!-- handle folding for if else elseif endif blocks -->
+ <RegExpr String="\bif\b" attribute="Commands" context="Command Args" beginRegion="ifthenelse" insensitive="true" />
+ <RegExpr String="\belse\b" attribute="Commands" context="Command Args" endRegion="ifthenelse" beginRegion="ifthenelse" insensitive="true" />
+ <RegExpr String="\belseif\b" attribute="Commands" context="Command Args" endRegion="ifthenelse" beginRegion="ifthenelse" insensitive="true" />
+ <RegExpr String="\bendif\b" attribute="Commands" context="Command Args" endRegion="ifthenelse" insensitive="true" />
+
+ <!-- handle folding for macro endmacro blocks -->
+ <RegExpr String="\bmacro\b" attribute="Commands" context="Command Args" beginRegion="macro" insensitive="true" />
+ <RegExpr String="\bendmacro\b" attribute="Commands" context="Command Args" endRegion="macro" insensitive="true" />
+
+ <!-- handle folding for foreach endforeach blocks -->
+ <RegExpr String="\bforeach\b" attribute="Commands" context="Command Args" beginRegion="foreach" insensitive="true" />
+ <RegExpr String="\bendforeach\b" attribute="Commands" context="Command Args" endRegion="foreach" insensitive="true" />
+
+ <!-- handle folding for while endwhile blocks -->
+ <RegExpr String="\bwhile\b" attribute="Commands" context="Command Args" beginRegion="while" insensitive="true" />
+ <RegExpr String="\bendwhile\b" attribute="Commands" context="Command Args" endRegion="while" insensitive="true" />
+
<keyword attribute="Commands" context="Command Args" String="commands" insensitive="true"/>
<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"/>
@@ -528,47 +819,122 @@
<IncludeRules context="Detect Variables"/>
<RegExpr attribute="Macros" context="Macro Args" String="\w+\s*(?=\()"/>
</context>
+ <!-- ATTENTION Do not change the context name! Or change a generation script accordingly -->
+ <context attribute="Normal Text" lineEndContext="#stay" name="Detect More Builtin Variables">
+ <!-- generated rules -->
+ <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_COMPILER_IS_GNU[A-Za-z_][A-Za-z_0-9]*\b" />
+ <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_DISABLE_FIND_PACKAGE_[A-Za-z_][A-Za-z_0-9]*\b" />
+ <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_EXE_LINKER_FLAGS_[A-Za-z_][A-Za-z_0-9]*\b" />
+ <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_POLICY_DEFAULT_CMP[0-9]+\b" />
+ <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_USER_MAKE_RULES_OVERRIDE_[A-Za-z_][A-Za-z_0-9]*\b" />
+ <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_[A-Za-z_][A-Za-z_0-9]*_ARCHIVE_APPEND\b" />
+ <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_[A-Za-z_][A-Za-z_0-9]*_ARCHIVE_CREATE\b" />
+ <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_[A-Za-z_][A-Za-z_0-9]*_ARCHIVE_FINISH\b" />
+ <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_[A-Za-z_][A-Za-z_0-9]*_COMPILER\b" />
+ <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_[A-Za-z_][A-Za-z_0-9]*_COMPILER_ABI\b" />
+ <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_[A-Za-z_][A-Za-z_0-9]*_COMPILER_ID\b" />
+ <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_[A-Za-z_][A-Za-z_0-9]*_COMPILER_LOADED\b" />
+ <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_[A-Za-z_][A-Za-z_0-9]*_COMPILER_VERSION\b" />
+ <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_[A-Za-z_][A-Za-z_0-9]*_COMPILE_OBJECT\b" />
+ <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_[A-Za-z_][A-Za-z_0-9]*_CREATE_SHARED_LIBRARY\b" />
+ <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_[A-Za-z_][A-Za-z_0-9]*_CREATE_SHARED_MODULE\b" />
+ <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_[A-Za-z_][A-Za-z_0-9]*_CREATE_STATIC_LIBRARY\b" />
+ <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_[A-Za-z_][A-Za-z_0-9]*_FLAGS_DEBUG\b" />
+ <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_[A-Za-z_][A-Za-z_0-9]*_FLAGS_MINSIZEREL\b" />
+ <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_[A-Za-z_][A-Za-z_0-9]*_FLAGS_RELEASE\b" />
+ <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_[A-Za-z_][A-Za-z_0-9]*_FLAGS_RELWITHDEBINFO\b" />
+ <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_[A-Za-z_][A-Za-z_0-9]*_IGNORE_EXTENSIONS\b" />
+ <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_[A-Za-z_][A-Za-z_0-9]*_IMPLICIT_INCLUDE_DIRECTORIES\b" />
+ <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_[A-Za-z_][A-Za-z_0-9]*_IMPLICIT_LINK_DIRECTORIES\b" />
+ <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_[A-Za-z_][A-Za-z_0-9]*_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES\b" />
+ <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_[A-Za-z_][A-Za-z_0-9]*_IMPLICIT_LINK_LIBRARIES\b" />
+ <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_[A-Za-z_][A-Za-z_0-9]*_LIBRARY_ARCHITECTURE\b" />
+ <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_[A-Za-z_][A-Za-z_0-9]*_LINKER_PREFERENCE\b" />
+ <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_[A-Za-z_][A-Za-z_0-9]*_LINKER_PREFERENCE_PROPAGATES\b" />
+ <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_[A-Za-z_][A-Za-z_0-9]*_LINK_EXECUTABLE \b" />
+ <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_[A-Za-z_][A-Za-z_0-9]*_OUTPUT_EXTENSION\b" />
+ <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_[A-Za-z_][A-Za-z_0-9]*_PLATFORM_ID\b" />
+ <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_[A-Za-z_][A-Za-z_0-9]*_POSTFIX\b" />
+ <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_[A-Za-z_][A-Za-z_0-9]*_SIZEOF_DATA_PTR\b" />
+ <RegExpr attribute="Builtin CMake Variable" context="#stay" String="\bCMAKE_[A-Za-z_][A-Za-z_0-9]*_SOURCE_FILE_EXTENSIONS\b" />
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="Detect Builtin Variables">
+ <keyword attribute="Builtin CMake Variable" context="#stay" String="cmake_vars" insensitive="false"/>
+ <IncludeRules context="Detect More Builtin Variables" />
+ </context>
+ <context attribute="CMake Variable" lineEndContext="#pop" name="VarSubst">
+ <IncludeRules context="Detect Builtin Variables"/>
+ <DetectIdentifier />
+ <DetectChar attribute="CMake Variable" context="#pop" char="}"/>
+ <IncludeRules context="Detect Variables"/>
+ </context>
<context attribute="Normal Text" lineEndContext="#stay" name="Detect Variables">
- <RegExpr attribute="Environment Variable" context="#stay" String="\$ENV\{\s*\w+\s*\}"/>
- <RegExpr attribute="CMake Variable" context="#stay" String="\$\{\s*\w+\s*\}"/>
+ <RegExpr attribute="Environment Variable" context="#stay" String="\$ENV\{\s*[\w-]+\s*\}"/>
+ <Detect2Chars attribute="CMake Variable" context="VarSubst" char="$" char1="{" />
+ </context>
+ <context attribute="Generator Expression" lineEndContext="#pop#pop" name="DetectSimpleGEEnd">
+ <DetectChar attribute="Generator Expression" context="#pop#pop" char="&gt;"/>
+ </context>
+ <context attribute="Generator Expression" lineEndContext="#pop" name="Generator Expression">
+ <IncludeRules context="Detect Generator Expressions"/>
+ <DetectChar attribute="Generator Expression" context="#pop" char="&gt;"/>
+ <keyword attribute="Generator Expression Keyword" context="DetectSimpleGEEnd" String="simple_generator_expr" insensitive="false"/>
+ <keyword attribute="Generator Expression Keyword" context="#stay" String="generator_expr" insensitive="false"/>
+ <IncludeRules context="Detect Variables"/>
+ </context>
+ <context attribute="Normal Text" lineEndContext="#stay" name="Detect Generator Expressions">
+ <Detect2Chars attribute="Generator Expression" context="Generator Expression" char="$" char1="&lt;" />
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="Command Args">
<keyword attribute="Special Args" context="#stay" String="special_args"/>
<keyword attribute="Special Args" context="#stay" String="extra_special_args"/>
+ <!-- NOTE Handle CMP<NNN> as a special arg -->
+ <RegExpr attribute="Special Args" context="#stay" String="\bCMP[0-9]+\b" />
<keyword attribute="Properties" context="#stay" String="properties"/>
<keyword attribute="Properties" context="#stay" String="extra_properties"/>
+ <IncludeRules context="Detect Builtin Variables"/>
<IncludeRules context="Macro Args"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="Macro Args">
<DetectChar attribute="Normal Text" context="#pop" char=")"/>
+ <!-- TODO Hmm... this rule looks strange... being in the Normal context -->
<StringDetect attribute="Escapes" context="#stay" String="\&quot;"/>
<DetectChar attribute="Strings" context="String" char="&quot;"/>
- <RegExpr attribute="Comment" context="#stay" String="#.*$"/>
+ <DetectChar attribute="Comment" context="Comment" char="#"/>
+ <IncludeRules context="Detect Builtin Variables"/>
<IncludeRules context="Detect Variables"/>
+ <IncludeRules context="Detect Generator Expressions"/>
</context>
<context attribute="Comment" lineEndContext="#pop" name="Comment">
<IncludeRules context="##Alerts" />
+ <IncludeRules context="##Modelines" />
</context>
<context attribute="Strings" lineEndContext="#stay" name="String">
<RegExpr attribute="Strings" context="#pop" String="&quot;(?=[ );]|$)" />
<RegExpr attribute="Escapes" context="#stay" String="\\[&quot;$n\\]" />
<IncludeRules context="Detect Variables"/>
+ <IncludeRules context="Detect Generator Expressions"/>
</context>
</contexts>
<itemDatas>
- <itemData name="Normal Text" defStyleNum="dsNormal"/>
- <itemData name="Special Args" defStyleNum="dsOthers"/>
- <itemData name="Properties" defStyleNum="dsOthers"/>
- <itemData name="Commands" defStyleNum="dsKeyword"/>
- <itemData name="Third-Party Commands" defStyleNum="dsFunction"/>
- <itemData name="Macros" defStyleNum="dsFunction"/>
- <itemData name="Strings" defStyleNum="dsString"/>
- <itemData name="Escapes" defStyleNum="dsChar"/>
- <itemData name="CMake Variable" defStyleNum="dsDecVal"/>
- <itemData name="Environment Variable" defStyleNum="dsFloat"/>
- <itemData name="Comment" defStyleNum="dsComment"/>
- <itemData name="Region Marker" defStyleNum="dsRegionMarker"/>
+ <itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false" />
+ <itemData name="Special Args" defStyleNum="dsOthers" spellChecking="false" />
+ <itemData name="Properties" defStyleNum="dsOthers" spellChecking="false" />
+ <itemData name="Commands" defStyleNum="dsKeyword" spellChecking="false" />
+ <itemData name="Third-Party Commands" defStyleNum="dsFunction" spellChecking="false" />
+ <itemData name="Macros" defStyleNum="dsFunction" spellChecking="false" />
+ <itemData name="Strings" defStyleNum="dsString" spellChecking="true" />
+ <itemData name="Escapes" defStyleNum="dsChar" spellChecking="false" />
+ <itemData name="Builtin CMake Variable" defStyleNum="dsDecVal" color="#c09050" selColor="#c09050" spellChecking="false" />
+ <!-- TODO Rename to "Variable Substitution" -->
+ <itemData name="CMake Variable" defStyleNum="dsDecVal" spellChecking="false" />
+ <!-- TODO Rename to "Environment Variable Substitution" -->
+ <itemData name="Environment Variable" defStyleNum="dsFloat" spellChecking="false" />
+ <itemData name="Generator Expression Keyword" defStyleNum="dsKeyword" color="#b84040" selColor="#b84040" spellChecking="false" />
+ <itemData name="Generator Expression" defStyleNum="dsOthers" color="#b86050" selColor="#b86050" spellChecking="false" />
+ <itemData name="Comment" defStyleNum="dsComment" spellChecking="true" />
+ <itemData name="Region Marker" defStyleNum="dsRegionMarker" spellChecking="false" />
</itemDatas>
</highlighting>