]>
luflow.net public git repositories - flow-web.git/blob - static/highlight/languages/cmake.js
1 /*! `cmake` grammar compiled for Highlight.js 11.11.1 */
3 var hljsGrammar
= (function () {
8 Description: CMake is an open-source cross-platform system for build automation.
9 Author: Igor Kalnitsky <igor@kalnitsky.org>
10 Website: https://cmake.org
11 Category: build-system
14 /** @type LanguageFn */
15 function cmake(hljs
) {
18 aliases: [ 'cmake.in' ],
19 case_insensitive: true,
22 'break cmake_host_system_information cmake_minimum_required cmake_parse_arguments '
23 + 'cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro '
24 + 'endwhile execute_process file find_file find_library find_package find_path '
25 + 'find_program foreach function get_cmake_property get_directory_property '
26 + 'get_filename_component get_property if include include_guard list macro '
27 + 'mark_as_advanced math message option return separate_arguments '
28 + 'set_directory_properties set_property set site_name string unset variable_watch while '
30 + 'add_compile_definitions add_compile_options add_custom_command add_custom_target '
31 + 'add_definitions add_dependencies add_executable add_library add_link_options '
32 + 'add_subdirectory add_test aux_source_directory build_command create_test_sourcelist '
33 + 'define_property enable_language enable_testing export fltk_wrap_ui '
34 + 'get_source_file_property get_target_property get_test_property include_directories '
35 + 'include_external_msproject include_regular_expression install link_directories '
36 + 'link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions '
37 + 'set_source_files_properties set_target_properties set_tests_properties source_group '
38 + 'target_compile_definitions target_compile_features target_compile_options '
39 + 'target_include_directories target_link_directories target_link_libraries '
40 + 'target_link_options target_sources try_compile try_run '
42 + 'ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck '
43 + 'ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit '
44 + 'ctest_test ctest_update ctest_upload '
45 // deprecated commands
46 + 'build_name exec_program export_library_dependencies install_files install_programs '
47 + 'install_targets load_command make_directory output_required_files remove '
48 + 'subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file '
49 + 'qt5_use_modules qt5_use_package qt5_wrap_cpp '
51 + 'on off true false and or not command policy target test exists is_newer_than '
52 + 'is_directory is_symlink is_absolute matches less greater equal less_equal '
53 + 'greater_equal strless strgreater strequal strless_equal strgreater_equal version_less '
54 + 'version_greater version_equal version_less_equal version_greater_equal in_list defined' },
57 className: 'variable',
61 hljs
.COMMENT(/#\[\[/, /]]/),
62 hljs
.HASH_COMMENT_MODE
,
63 hljs
.QUOTE_STRING_MODE
,
73 hljs
.registerLanguage('cmake', hljsGrammar
);