1# Define SciTE settings for CMake.
2# contributed by Cristian Adam <cristian dot adam at gmx dot net>
3
4filter.cmake=CMake (CMakeLists.txt cmake ctest)|CMakeLists.txt;*.cmake;*.cmake.in;*.ctest;*.ctest.in|
5*filter.cmake=$(filter.cmake)
6file.patterns.cmake=CMakeLists.txt;*.cmake;*.cmake.in;*.ctest;*.ctest.in
7lexer.$(file.patterns.cmake)=cmake
8*language.cmake=CMake|cmake||
9
10# Commands:
11keywords.$(file.patterns.cmake)= add_custom_command \
12add_compile_definitions \
13add_compile_options \
14add_custom_command \
15add_custom_target \
16add_definitions \
17add_dependencies \
18add_executable \
19add_library \
20add_link_options \
21add_subdirectory \
22add_test \
23aux_source_directory \
24build_command \
25build_name \
26cmake_minimum_required \
27configure_file \
28create_test_sourcelist \
29else \
30elseif \
31enable_language \
32enable_testing \
33endforeach \
34endfunction \
35endif \
36endmacro \
37endwhile \
38exec_program \
39execute_process \
40export \
41export_library_dependencies \
42file \
43find_file \
44find_library \
45find_package \
46find_path \
47find_program \
48fltk_wrap_ui \
49foreach \
50function \
51get_cmake_property \
52get_directory_property \
53get_filename_component \
54get_source_file_property \
55get_target_property \
56get_test_property \
57if \
58include \
59include_directories \
60include_external_msproject \
61include_regular_expression \
62install \
63install_files \
64install_programs \
65install_targets \
66link_directories \
67link_libraries \
68list \
69load_cache \
70load_command \
71macro \
72make_directory \
73mark_as_advanced \
74math \
75message \
76option \
77output_required_files \
78project \
79qt_wrap_cpp \
80qt_wrap_ui \
81remove \
82remove_definitions \
83separate_arguments \
84set \
85set_directory_properties \
86set_source_files_properties \
87set_target_properties \
88set_tests_properties \
89site_name \
90source_group \
91string \
92subdir_depends \
93subdirs \
94target_compile_definitions \
95target_compile_features \
96target_compile_options \
97target_include_directories \
98target_link_directories \
99target_link_libraries \
100target_link_options \
101target_sources \
102try_compile \
103try_run \
104use_mangled_mesa \
105utility_source \
106variable_requires \
107vtk_make_instantiator \
108vtk_wrap_java \
109vtk_wrap_python \
110vtk_wrap_tcl \
111while \
112write_file
113
114# Variables:
115keywords2.$(file.patterns.cmake)= ABSOLUTE \
116ABSTRACT \
117ADDITIONAL_MAKE_CLEAN_FILES \
118ALL \
119AND \
120APPEND \
121ARGS \
122ASCII \
123BEFORE \
124CACHE \
125CACHE_VARIABLES \
126CLEAR \
127COMMAND \
128COMMANDS \
129COMMAND_NAME \
130COMMENT \
131COMPARE \
132COMPILE_FLAGS \
133COPYONLY \
134DEFINED \
135DEFINE_SYMBOL \
136DEPENDS \
137DOC \
138EQUAL \
139ESCAPE_QUOTES \
140EXCLUDE \
141EXCLUDE_FROM_ALL \
142EXISTS \
143EXPORT_MACRO \
144EXT \
145EXTRA_INCLUDE \
146FATAL_ERROR \
147FILE \
148FILES \
149FORCE \
150FUNCTION \
151GENERATED \
152GLOB \
153GLOB_RECURSE \
154GREATER \
155GROUP_SIZE \
156HEADER_FILE_ONLY \
157HEADER_LOCATION \
158IMMEDIATE \
159INCLUDES \
160INCLUDE_DIRECTORIES \
161INCLUDE_INTERNALS \
162INCLUDE_REGULAR_EXPRESSION \
163LESS \
164LINK_DIRECTORIES \
165LINK_FLAGS \
166LOCATION \
167MACOSX_BUNDLE \
168MACROS \
169MAIN_DEPENDENCY \
170MAKE_DIRECTORY \
171MATCH \
172MATCHALL \
173MATCHES \
174MODULE \
175NAME \
176NAME_WE \
177NOT \
178NOTEQUAL \
179NO_SYSTEM_PATH \
180OBJECT_DEPENDS \
181OPTIONAL \
182OR \
183OUTPUT \
184OUTPUT_VARIABLE \
185PATH \
186PATHS \
187POST_BUILD \
188POST_INSTALL_SCRIPT \
189PREFIX \
190PREORDER \
191PRE_BUILD \
192PRE_INSTALL_SCRIPT \
193PRE_LINK \
194PROGRAM \
195PROGRAM_ARGS \
196PROPERTIES \
197QUIET \
198RANGE \
199READ \
200REGEX \
201REGULAR_EXPRESSION \
202REPLACE \
203REQUIRED \
204RETURN_VALUE \
205RUNTIME_DIRECTORY \
206SEND_ERROR \
207SHARED \
208SOURCES \
209STATIC \
210STATUS \
211STREQUAL \
212STRGREATER \
213STRLESS \
214SUFFIX \
215TARGET \
216TOLOWER \
217TOUPPER \
218VAR \
219VARIABLES \
220VERSION \
221WIN32 \
222WRAP_EXCLUDE \
223WRITE \
224APPLE  \
225MINGW \
226MSYS \
227CYGWIN  \
228BORLAND \
229WATCOM \
230MSVC MSVC_IDE MSVC60 MSVC70 MSVC71 MSVC80 CMAKE_COMPILER_2005 \
231OFF ON \
232
233#User defined:
234#keywords3.$(file.patterns.cmake)=MyFunction MySomethingElse
235
236# Block and indenting
237statement.indent.$(file.patterns.cmake)=5 if while foreach macro
238comment.block.cmake=#~
239comment.block.at.line.start.cmake=1
240calltip.cmake.ignorecase=1
241calltip.cmake.parameters.start=(
242calltip.cmake.parameters.separators=,
243calltip.cmake.parameters.end=)
244
245# Whitespace (SCE_CMAKE_DEFAULT)
246style.cmake.0=fore:#000000,$(font.base)
247# Comment (SCE_CMAKE_COMMENT)
248style.cmake.1=fore:#007F00,$(font.comment)
249# String double quote (SCE_CMAKE_STRINGDQ)
250style.cmake.2=fore:#7F007F,back:#EEEEEE
251# String left quote (SCE_CMAKE_STRINGLQ)
252style.cmake.3=fore:#7F007F,back:#EEEEEE
253# String right quote (SCE_CMAKE_STRINGRQ)
254style.cmake.4=fore:#7F007F,back:#EEEEEE
255# Function (SCE_CMAKE_COMMANDS)
256style.cmake.5=fore:#00007F,bold
257# Variable (SCE_CMAKE_ARGUMENTS)
258style.cmake.6=fore:#800000
259# Label (SCE_CMAKE_VARIABLE)
260style.cmake.7=fore:#CC3300
261# User Defined (SCE_CMAKE_USERDEFINED)
262style.cmake.8=fore:#000000
263# Section (SCE_CMAKE_WHILEDEF)
264style.cmake.9=fore:#00007F,bold
265# Sub section (SCE_CMAKE_FOREACHDEF)
266style.cmake.10=fore:#00007F,bold
267# If def (SCE_CMAKE_IFDEFINEDEF)
268style.cmake.11=fore:#00007F,bold
269# Macro def (SCE_CMAKE_MACRODEF)
270style.cmake.12=fore:#00007F,bold
271# Variable within string (SCE_CMAKE_STRINGVAR)
272style.cmake.13=fore:#CC3300,back:#EEEEEE
273# Numbers (SCE_CMAKE_NUMBER)
274style.cmake.14=$(colour.number)