KXStudio Website https://kx.studio/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cmake.php 7.1KB

11 years ago
11 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. <?php
  2. /*************************************************************************************
  3. * cmake.php
  4. * -------
  5. * Author: Daniel Nelson (danieln@eng.utah.edu)
  6. * Copyright: (c) 2009 Daniel Nelson
  7. * Release Version: 1.0.8.11
  8. * Date Started: 2009/04/06
  9. *
  10. * CMake language file for GeSHi.
  11. *
  12. * Keyword list generated using CMake 2.6.3.
  13. *
  14. * CHANGES
  15. * -------
  16. * <date-of-release> (<GeSHi release>)
  17. * - First Release
  18. *
  19. * TODO (updated <date-of-release>)
  20. * -------------------------
  21. *
  22. *************************************************************************************
  23. *
  24. * This file is part of GeSHi.
  25. *
  26. * GeSHi is free software; you can redistribute it and/or modify
  27. * it under the terms of the GNU General Public License as published by
  28. * the Free Software Foundation; either version 2 of the License, or
  29. * (at your option) any later version.
  30. *
  31. * GeSHi is distributed in the hope that it will be useful,
  32. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  33. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  34. * GNU General Public License for more details.
  35. *
  36. * You should have received a copy of the GNU General Public License
  37. * along with GeSHi; if not, write to the Free Software
  38. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  39. *
  40. ************************************************************************************/
  41. $language_data = array (
  42. 'LANG_NAME' => 'CMake',
  43. 'COMMENT_SINGLE' => array(1 => '#'),
  44. 'COMMENT_MULTI' => array(),
  45. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  46. 'QUOTEMARKS' => array('"'),
  47. 'ESCAPE_CHAR' => '\\',
  48. 'ESCAPE_REGEXP' => array(
  49. // Quoted variables ${...}
  50. 1 => "/\\$(ENV)?\\{[^\\n\\}]*?\\}/i",
  51. // Quoted registry keys [...]
  52. 2 => "/\\[HKEY[^\n\\]]*?]/i"
  53. ),
  54. 'KEYWORDS' => array(
  55. 1 => array(
  56. 'add_custom_command', 'add_custom_target', 'add_definitions',
  57. 'add_dependencies', 'add_executable', 'add_library',
  58. 'add_subdirectory', 'add_test', 'aux_source_directory', 'break',
  59. 'build_command', 'cmake_minimum_required', 'cmake_policy',
  60. 'configure_file', 'create_test_sourcelist', 'define_property',
  61. 'else', 'elseif', 'enable_language', 'enable_testing',
  62. 'endforeach', 'endfunction', 'endif', 'endmacro',
  63. 'endwhile', 'execute_process', 'export', 'file', 'find_file',
  64. 'find_library', 'find_package', 'find_path', 'find_program',
  65. 'fltk_wrap_ui', 'foreach', 'function', 'get_cmake_property',
  66. 'get_directory_property', 'get_filename_component', 'get_property',
  67. 'get_source_file_property', 'get_target_property',
  68. 'get_test_property', 'if', 'include', 'include_directories',
  69. 'include_external_msproject', 'include_regular_expression',
  70. 'install', 'link_directories', 'list', 'load_cache',
  71. 'load_command', 'macro', 'mark_as_advanced', 'math', 'message',
  72. 'option', 'output_required_files', 'project', 'qt_wrap_cpp',
  73. 'qt_wrap_ui', 'remove_definitions', 'return', 'separate_arguments',
  74. 'set', 'set_directory_properties', 'set_property',
  75. 'set_source_files_properties', 'set_target_properties',
  76. 'set_tests_properties', 'site_name', 'source_group', 'string',
  77. 'target_link_libraries', 'try_compile', 'try_run', 'unset',
  78. 'variable_watch', 'while'
  79. ),
  80. 2 => array(
  81. // Deprecated commands
  82. 'build_name', 'exec_program', 'export_library_dependencies',
  83. 'install_files', 'install_programs', 'install_targets',
  84. 'link_libraries', 'make_directory', 'remove', 'subdir_depends',
  85. 'subdirs', 'use_mangled_mesa', 'utility_source',
  86. 'variable_requires', 'write_file'
  87. ),
  88. 3 => array(
  89. // Special command arguments, this list is not comprehesive.
  90. 'AND', 'APPEND', 'ASCII', 'BOOL', 'CACHE', 'COMMAND', 'COMMENT',
  91. 'COMPARE', 'CONFIGURE', 'DEFINED', 'DEPENDS', 'DIRECTORY',
  92. 'EQUAL', 'EXCLUDE_FROM_ALL', 'EXISTS', 'FALSE', 'FATAL_ERROR',
  93. 'FILEPATH', 'FIND', 'FORCE', 'GET', 'GLOBAL', 'GREATER',
  94. 'IMPLICIT_DEPENDS', 'INSERT', 'INTERNAL', 'IS_ABSOLUTE',
  95. 'IS_DIRECTORY', 'IS_NEWER_THAN', 'LENGTH', 'LESS',
  96. 'MAIN_DEPENDENCY', 'MATCH', 'MATCHALL', 'MATCHES', 'MODULE', 'NOT',
  97. 'NOTFOUND', 'OFF', 'ON', 'OR', 'OUTPUT', 'PARENT_SCOPE', 'PATH',
  98. 'POLICY', 'POST_BUILD', 'PRE_BUILD', 'PRE_LINK', 'PROPERTY',
  99. 'RANDOM', 'REGEX', 'REMOVE_AT', 'REMOVE_DUPLICATES', 'REMOVE_ITEM',
  100. 'REPLACE', 'REVERSE', 'SEND_ERROR', 'SHARED', 'SORT', 'SOURCE',
  101. 'STATIC', 'STATUS', 'STREQUAL', 'STRGREATER', 'STRING', 'STRIP',
  102. 'STRLESS', 'SUBSTRING', 'TARGET', 'TEST', 'TOLOWER', 'TOUPPER',
  103. 'TRUE', 'VERBATIM', 'VERSION', 'VERSION_EQUAL', 'VERSION_GREATOR',
  104. 'VERSION_LESS', 'WORKING_DIRECTORY',
  105. )
  106. ),
  107. 'CASE_SENSITIVE' => array(
  108. GESHI_COMMENTS => false,
  109. 1 => false,
  110. 2 => false,
  111. 3 => true
  112. ),
  113. 'SYMBOLS' => array(
  114. 0 => array('(', ')')
  115. ),
  116. 'STYLES' => array(
  117. 'KEYWORDS' => array(
  118. 1 => 'color: #1f3f81; font-style: bold;',
  119. 2 => 'color: #1f3f81;',
  120. 3 => 'color: #077807; font-sytle: italic;'
  121. ),
  122. 'BRACKETS' => array(),
  123. 'COMMENTS' => array(
  124. 1 => 'color: #666666; font-style: italic;'
  125. ),
  126. 'ESCAPE_CHAR' => array(
  127. 0 => 'color: #000099; font-weight: bold;',
  128. 1 => 'color: #b08000;',
  129. 2 => 'color: #0000cd;'
  130. ),
  131. 'STRINGS' => array(
  132. 0 => 'color: #912f11;',
  133. ),
  134. 'SYMBOLS' => array(
  135. 0 => 'color: #197d8b;'
  136. ),
  137. 'NUMBERS' => array(),
  138. 'METHODS' => array(),
  139. 'REGEXPS' => array(
  140. 0 => 'color: #b08000;',
  141. 1 => 'color: #0000cd;'
  142. ),
  143. 'SCRIPT' => array()
  144. ),
  145. 'URLS' => array(
  146. 1 => 'http://www.cmake.org/cmake/help/cmake2.6docs.html#command:{FNAMEL}',
  147. 2 => 'http://www.cmake.org/cmake/help/cmake2.6docs.html#command:{FNAMEL}',
  148. 3 => '',
  149. ),
  150. 'OOLANG' => false,
  151. 'OBJECT_SPLITTERS' => array(),
  152. 'REGEXPS' => array(
  153. // Unquoted variables
  154. 0 => "\\$(ENV)?\\{[^\\n}]*?\\}",
  155. // Unquoted registry keys
  156. 1 => "\\[HKEY[^\n\\]]*?]"
  157. ),
  158. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  159. 'SCRIPT_DELIMITERS' => array(),
  160. 'HIGHLIGHT_STRICT_BLOCK' => array(),
  161. 'TAB_WIDTH' => 4,
  162. 'PARSER_CONTROL' => array(
  163. 'KEYWORDS' => array(
  164. // These keywords cannot come after a open paren
  165. 1 => array(
  166. 'DISALLOWED_AFTER' => '(?= *\()'
  167. ),
  168. 2 => array(
  169. 'DISALLOWED_AFTER' => '(?= *\()'
  170. )
  171. ),
  172. 'ENABLE_FLAGS' => array(
  173. 'BRACKETS' => GESHI_NEVER,
  174. 'METHODS' => GESHI_NEVER,
  175. 'NUMBERS' => GESHI_NEVER
  176. )
  177. )
  178. );
  179. ?>