diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-04-16 17:49:25 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-04-16 17:49:25 (GMT) |
commit | 32cd4a8c582edbabf9a9f8cbd7eef60bafca2022 (patch) | |
tree | 069e74531d8fc01b4847830da9d3ab5b9290b8aa | |
parent | 4a99b9abf9be33a591d4418f6fe7d1213441005f (diff) | |
download | CMake-32cd4a8c582edbabf9a9f8cbd7eef60bafca2022.zip CMake-32cd4a8c582edbabf9a9f8cbd7eef60bafca2022.tar.gz CMake-32cd4a8c582edbabf9a9f8cbd7eef60bafca2022.tar.bz2 |
ENH: Cleanup, make case insensitive, remove macro since it does not work anyway
-rw-r--r-- | Docs/cmake-syntax.vim | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Docs/cmake-syntax.vim b/Docs/cmake-syntax.vim index 7d02195..bb656bb 100644 --- a/Docs/cmake-syntax.vim +++ b/Docs/cmake-syntax.vim @@ -1,18 +1,18 @@ " ============================================================================= -" +" " Program: CMake - Cross-Platform Makefile Generator " Module: $RCSfile$ " Language: C++ " Date: $Date$ " Version: $Revision$ -" +" " Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved. " See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details. -" -" This software is distributed WITHOUT ANY WARRANTY" without even -" the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +" +" This software is distributed WITHOUT ANY WARRANTY" without even +" the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR " PURPOSE. See the above copyright notices for more information. -" +" " ============================================================================= " Vim syntax file @@ -21,7 +21,7 @@ " Maintainer: Andy Cedilnik <andy.cedilnik@kitware.com> " Last Change: $Date$ " Version: $Revision$ -" +" " Licence: This program is free software; you can redistribute it " and/or modify it under the terms of the CMake " License. See http://www.cmake.org/HTML/Copyright.html @@ -34,7 +34,7 @@ elseif exists("b:current_syntax") finish endif -syn case match +syn case ignore syn match cmakeComment /#.*$/ syn region cmakeRegistry start=/\[/ end=/\]/ skip=/\\[\[\]]/ \ contained @@ -43,9 +43,9 @@ syn match cmakeArgument /[^()"]+/ syn match cmakeVariableValue /\${[^}]*}/ \ contained oneline syn match cmakeEnvironment /\$ENV{.*}/ - \ contained + \ contained syn keyword cmakeSystemVariables - \ WIN32 UNIX APPLE CYGWIN BORLAND MINGW MSVC MSVC_IDE MSVC60 MSVC70 MSVC71 MSVC80 + \ WIN32 UNIX APPLE CYGWIN BORLAND MINGW MSVC MSVC_IDE MSVC60 MSVC70 MSVC71 MSVC80 syn keyword cmakeOperators \ AND BOOL CACHE COMMAND DEFINED DOC EQUAL EXISTS FALSE GREATER INTERNAL LESS MATCHES NAME NAMES NAME_WE NOT OFF ON OR PATH PATHS PROGRAM STREQUAL STRGREATER STRING STRLESS TRUE " \ contained @@ -55,11 +55,11 @@ syn region cmakeArguments start=/\s*(/ end=/)/ \ contains=ALLBUT,cmakeArguments syn keyword cmakeDeprecated ABSTRACT_FILES BUILD_NAME SOURCE_FILES SOURCE_FILES_REMOVE VTK_MAKE_INSTANTIATOR VTK_WRAP_JAVA VTK_WRAP_PYTHON VTK_WRAP_TCL WRAP_EXCLUDE_FILES \ nextgroup=cmakeArgument -syn keyword cmakeStatement +syn keyword cmakeStatement \ ADD_CUSTOM_COMMAND ADD_CUSTOM_TARGET ADD_DEFINITIONS ADD_DEPENDENCIES ADD_EXECUTABLE ADD_LIBRARY ADD_SUBDIRECTORY ADD_TEST AUX_SOURCE_DIRECTORY BUILD_COMMAND BUILD_NAME CMAKE_MINIMUM_REQUIRED CONFIGURE_FILE CREATE_TEST_SOURCELIST ELSE ENABLE_LANGUAGE ENABLE_TESTING ENDFOREACH ENDIF ENDWHILE EXEC_PROGRAM EXECUTE_PROCESS EXPORT_LIBRARY_DEPENDENCIES FILE FIND_FILE FIND_LIBRARY FIND_PACKAGE FIND_PATH FIND_PROGRAM FLTK_WRAP_UI FOREACH GET_CMAKE_PROPERTY GET_DIRECTORY_PROPERTY GET_FILENAME_COMPONENT GET_SOURCE_FILE_PROPERTY GET_TARGET_PROPERTY GET_TEST_PROPERTY IF INCLUDE INCLUDE_DIRECTORIES INCLUDE_EXTERNAL_MSPROJECT INCLUDE_REGULAR_EXPRESSION INSTALL INSTALL_FILES INSTALL_PROGRAMS INSTALL_TARGETS LINK_DIRECTORIES LINK_LIBRARIES LIST LOAD_CACHE LOAD_COMMAND MACRO MAKE_DIRECTORY MARK_AS_ADVANCED MATH MESSAGE OPTION OUTPUT_REQUIRED_FILES PROJECT QT_WRAP_CPP QT_WRAP_UI REMOVE REMOVE_DEFINITIONS SEPARATE_ARGUMENTS SET SET_DIRECTORY_PROPERTIES SET_SOURCE_FILES_PROPERTIES SET_TARGET_PROPERTIES SET_TESTS_PROPERTIES SITE_NAME SOURCE_GROUP STRING SUBDIR_DEPENDS SUBDIRS TARGET_LINK_LIBRARIES TRY_COMPILE TRY_RUN USE_MANGLED_MESA UTILITY_SOURCE VARIABLE_REQUIRES VTK_MAKE_INSTANTIATOR VTK_WRAP_JAVA VTK_WRAP_PYTHON VTK_WRAP_TCL WHILE WRITE_FILE \ nextgroup=cmakeArgumnts -syn match cmakeMacro /[A-Z_]+/ nextgroup=cmakeArgumnts +"syn match cmakeMacro /^\s*[A-Z_]\+/ nextgroup=cmakeArgumnts " Define the default highlighting. " For version 5.7 and earlier: only when not done already |