diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2016-07-22 16:30:57 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2016-07-22 16:30:57 (GMT) |
commit | 8ac4e2cfa283d6a27ba11c9ce6e2cea44457b5cb (patch) | |
tree | c53ac9fd620ad859b24ac1279dbab4dbdd80b8e9 | |
parent | 3b3bd880a3de1d6348d746c15b6bc3b32757343a (diff) | |
download | CMake-8ac4e2cfa283d6a27ba11c9ce6e2cea44457b5cb.zip CMake-8ac4e2cfa283d6a27ba11c9ce6e2cea44457b5cb.tar.gz CMake-8ac4e2cfa283d6a27ba11c9ce6e2cea44457b5cb.tar.bz2 |
Aux: highlight conditiona and repeat commands differently
-rw-r--r-- | Auxiliary/cmake-syntax.vim | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Auxiliary/cmake-syntax.vim b/Auxiliary/cmake-syntax.vim index e41a2e5..25c66df 100644 --- a/Auxiliary/cmake-syntax.vim +++ b/Auxiliary/cmake-syntax.vim @@ -426,7 +426,13 @@ syn keyword cmakeGeneratorExpressions syn case ignore syn keyword cmakeCommand - \ add_compile_options add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_subdirectory add_test aux_source_directory break build_command cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue create_test_sourcelist ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ctest_test ctest_update ctest_upload define_property else elseif enable_language enable_testing endforeach endfunction endif endmacro endwhile execute_process export file find_file find_library find_package find_path find_program fltk_wrap_ui foreach function get_cmake_property get_directory_property get_filename_component get_property get_source_file_property get_target_property get_test_property if include include_directories include_external_msproject include_regular_expression install link_directories list load_cache load_command macro mark_as_advanced math message option project qt_wrap_cpp qt_wrap_ui remove_definitions return separate_arguments set set_directory_properties set_property set_source_files_properties set_target_properties set_tests_properties site_name source_group string target_compile_definitions target_compile_features target_compile_options target_include_directories target_link_libraries target_sources try_compile try_run unset variable_watch while + \ add_compile_options add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_subdirectory add_test aux_source_directory break build_command cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue create_test_sourcelist ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ctest_test ctest_update ctest_upload define_property enable_language enable_testing endfunction endmacro execute_process export file find_file find_library find_package find_path find_program fltk_wrap_ui function get_cmake_property get_directory_property get_filename_component get_property get_source_file_property get_target_property get_test_property include include_directories include_external_msproject include_regular_expression install link_directories list load_cache load_command macro mark_as_advanced math message option project qt_wrap_cpp qt_wrap_ui remove_definitions return separate_arguments set set_directory_properties set_property set_source_files_properties set_target_properties set_tests_properties site_name source_group string target_compile_definitions target_compile_features target_compile_options target_include_directories target_link_libraries target_sources try_compile try_run unset variable_watch + \ nextgroup=cmakeArguments +syn keyword cmakeCommandConditional + \ else elseif endif if + \ nextgroup=cmakeArguments +syn keyword cmakeCommandRepeat + \ endforeach endwhile foreach while \ nextgroup=cmakeArguments syn keyword cmakeCommandDeprecated \ build_name exec_program export_library_dependencies install_files install_programs install_targets link_libraries make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file @@ -438,7 +444,9 @@ syn keyword cmakeTodo \ contained hi def link cmakeCommand Statement +hi def link cmakeCommandConditional Conditional hi def link cmakeCommandDeprecated WarningMsg +hi def link cmakeCommandRepeat Repeat hi def link cmakeComment Comment hi def link cmakeEnvironment Special hi def link cmakeEscaped Special |