Skip to content

Instantly share code, notes, and snippets.

@danlmyers
Created June 30, 2010 15:54
Show Gist options
  • Save danlmyers/458835 to your computer and use it in GitHub Desktop.
Save danlmyers/458835 to your computer and use it in GitHub Desktop.
## Cmake Syntax highlighting
##
syntax "cmake" "CMakeLists.txt" "cmakelists.txt" "\.(cmake|cmake.in|ctest|ctest.in)"
color brightcyan "\<(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_minimum_required|cmake_policy|configure_file|create_test_sourcelist|define_property|enable_language|enable_testing|execute_process|export|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|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|mark_as_advanced|math|message|option|output_required_files|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_link_libraries|try_compile|try_run|unset|variable_watch)\>"
color brightmagenta "\<(else|elseif|endforeach|endfunction|endif|endmacro|endwhile|foreach|function|if|macro|while)\>"
color red "\".*\""
color green start="\$\{" end="\}"
## Comment Highlighting
color blue "#.*$"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment