<?xml version="1.0"?>
<!DOCTYPE MODE SYSTEM "xmode.dtd">
<!--
jEdit Syntax Mode for cmake
Last change:  2008-07-05
Author:       Bernhard Walle <bernhard.walle@gmx.de>

<MODE NAME="cmake" FILE="cmake.xml" FILE_NAME_GLOB="CMakeLists.txt"/>

see http://jedit.org/users-guide/installing-modes.html
-->
<MODE>
	<PROPS>
		<PROPERTY NAME="lineComment" VALUE="#"/>

		<PROPERTY NAME="indentSize" VALUE="4"/>
		<PROPERTY NAME="firstlineGlob" VALUE=""/>
		<PROPERTY NAME="wrap" VALUE="none"/>
		<PROPERTY NAME="noTabs" VALUE="false"/>
		<PROPERTY NAME="tabSize" VALUE="8"/>
		<PROPERTY NAME="maxLineLen" VALUE="0"/>
		<PROPERTY NAME="noWordSep" VALUE="_"/>
		<PROPERTY NAME="folding" VALUE="none"/>
		<PROPERTY NAME="customSettings" VALUE="true"/>
		<PROPERTY NAME="deepIndent" VALUE="false"/>
		<PROPERTY NAME="collapseFolds" VALUE="1000"/>
	</PROPS>
	<RULES IGNORE_CASE="TRUE" HIGHLIGHT_DIGITS="TRUE">

    <!-- Comments -->
    <EOL_SPAN TYPE="COMMENT1">#</EOL_SPAN>

    <!-- variables -->
    <SPAN TYPE="KEYWORD2" NO_LINE_BREAK="TRUE">
      <BEGIN>${</BEGIN>
      <END>}</END>
    </SPAN>
    <MARK_FOLLOWING TYPE="KEYWORD2">$</MARK_FOLLOWING>

    <!-- string literals -->
		<SPAN TYPE="LITERAL1" DELEGATE="LITERAL">
			<BEGIN>"</BEGIN>
			<END>"</END>
		</SPAN>

    <!-- Function calls -->
		<MARK_PREVIOUS TYPE="FUNCTION" MATCH_TYPE="OPERATOR">(</MARK_PREVIOUS>
		<SEQ TYPE="OPERATOR">)</SEQ>

    <KEYWORDS>
      <!-- operators -->
      <OPERATOR>AND</OPERATOR>
      <OPERATOR>BOOL</OPERATOR>
      <OPERATOR>CACHE</OPERATOR>
      <OPERATOR>COMMAND</OPERATOR>
      <OPERATOR>DEFINED</OPERATOR>
      <OPERATOR>DOC</OPERATOR>
      <OPERATOR>EQUAL</OPERATOR>
      <OPERATOR>EXISTS</OPERATOR>
      <OPERATOR>FALSE</OPERATOR>
      <OPERATOR>GREATER</OPERATOR>
      <OPERATOR>INTERNAL</OPERATOR>
      <OPERATOR>LESS</OPERATOR>
      <OPERATOR>MATCHES</OPERATOR>
      <OPERATOR>NAME</OPERATOR>
      <OPERATOR>NAMES</OPERATOR>
      <OPERATOR>NAME_WE</OPERATOR>
      <OPERATOR>NOT</OPERATOR>
      <OPERATOR>OFF</OPERATOR>
      <OPERATOR>ON</OPERATOR>
      <OPERATOR>OR</OPERATOR>
      <OPERATOR>PATH</OPERATOR>
      <OPERATOR>PATHS</OPERATOR>
      <OPERATOR>PROGRAM</OPERATOR>
      <OPERATOR>STREQUAL</OPERATOR>
      <OPERATOR>STRGREATER</OPERATOR>
      <OPERATOR>STRING</OPERATOR>
      <OPERATOR>STRLESS</OPERATOR>
      <OPERATOR>TRUE</OPERATOR>

      <!-- conditionals -->
      <KEYWORD4>FOREACH</KEYWORD4>
      <KEYWORD4>ELSE</KEYWORD4>
      <KEYWORD4>ELSEIF</KEYWORD4>
      <KEYWORD4>IF</KEYWORD4>
      <KEYWORD4>MACRO</KEYWORD4>
      <KEYWORD4>ENDIF</KEYWORD4>
      <KEYWORD4>ENDWHILE</KEYWORD4>
      <KEYWORD4>ENDFOREACH</KEYWORD4>
      <KEYWORD4>ENDMACRO</KEYWORD4>
      <KEYWORD4>WHILE</KEYWORD4>

      <!-- default function names -->
      <KEYWORD2>ADD_CUSTOM_COMMAND</KEYWORD2>
      <KEYWORD2>ADD_CUSTOM_TARGET</KEYWORD2>
      <KEYWORD2>ADD_DEFINITIONS</KEYWORD2>
      <KEYWORD2>ADD_DEPENDENCIES</KEYWORD2>
      <KEYWORD2>ADD_EXECUTABLE</KEYWORD2>
      <KEYWORD2>ADD_LIBRARY</KEYWORD2>
      <KEYWORD2>ADD_SUBDIRECTORY</KEYWORD2>
      <KEYWORD2>ADD_TEST</KEYWORD2>
      <KEYWORD2>AUX_SOURCE_DIRECTORY</KEYWORD2>
      <KEYWORD2>BUILD_COMMAND</KEYWORD2>
      <KEYWORD2>BUILD_NAME</KEYWORD2>
      <KEYWORD2>CMAKE_MINIMUM_REQUIRED</KEYWORD2>
      <KEYWORD2>CONFIGURE_FILE</KEYWORD2>
      <KEYWORD2>CREATE_TEST_SOURCELIST</KEYWORD2>
      <KEYWORD2>ENABLE_LANGUAGE</KEYWORD2>
      <KEYWORD2>ENABLE_TESTING</KEYWORD2>
      <KEYWORD2>EXEC_PROGRAM</KEYWORD2>
      <KEYWORD2>EXECUTE_PROCESS</KEYWORD2>
      <KEYWORD2>EXPORT_LIBRARY_DEPENDENCIES</KEYWORD2>
      <KEYWORD2>FILE</KEYWORD2>
      <KEYWORD2>FIND_FILE</KEYWORD2>
      <KEYWORD2>FIND_LIBRARY</KEYWORD2>
      <KEYWORD2>FIND_PACKAGE</KEYWORD2>
      <KEYWORD2>FIND_PATH</KEYWORD2>
      <KEYWORD2>FIND_PROGRAM</KEYWORD2>
      <KEYWORD2>FLTK_WRAP_UI</KEYWORD2>
      <KEYWORD2>GET_CMAKE_PROPERTY</KEYWORD2>
      <KEYWORD2>GET_DIRECTORY_PROPERTY</KEYWORD2>
      <KEYWORD2>GET_FILENAME_COMPONENT</KEYWORD2>
      <KEYWORD2>GET_SOURCE_FILE_PROPERTY</KEYWORD2>
      <KEYWORD2>GET_TARGET_PROPERTY</KEYWORD2>
      <KEYWORD2>GET_TEST_PROPERTY</KEYWORD2>
      <KEYWORD2>INCLUDE</KEYWORD2>
      <KEYWORD2>INCLUDE_DIRECTORIES</KEYWORD2>
      <KEYWORD2>INCLUDE_EXTERNAL_MSPROJECT</KEYWORD2>
      <KEYWORD2>INCLUDE_REGULAR_EXPRESSION</KEYWORD2>
      <KEYWORD2>INSTALL</KEYWORD2>
      <KEYWORD2>INSTALL_FILES</KEYWORD2>
      <KEYWORD2>INSTALL_PROGRAMS</KEYWORD2>
      <KEYWORD2>INSTALL_TARGETS</KEYWORD2>
      <KEYWORD2>LINK_DIRECTORIES</KEYWORD2>
      <KEYWORD2>LINK_LIBRARIES</KEYWORD2>
      <KEYWORD2>LIST</KEYWORD2>
      <KEYWORD2>LOAD_CACHE</KEYWORD2>
      <KEYWORD2>LOAD_COMMAND</KEYWORD2>
      <KEYWORD2>MAKE_DIRECTORY</KEYWORD2>
      <KEYWORD2>MARK_AS_ADVANCED</KEYWORD2>
      <KEYWORD2>MATH</KEYWORD2>
      <KEYWORD2>MESSAGE</KEYWORD2>
      <KEYWORD2>OPTION</KEYWORD2>
      <KEYWORD2>OUTPUT_REQUIRED_FILES</KEYWORD2>
      <KEYWORD2>PROJECT</KEYWORD2>
      <KEYWORD2>QT_WRAP_CPP</KEYWORD2>
      <KEYWORD2>QT_WRAP_UI</KEYWORD2>
      <KEYWORD2>REMOVE</KEYWORD2>
      <KEYWORD2>REMOVE_DEFINITIONS</KEYWORD2>
      <KEYWORD2>SEPARATE_ARGUMENTS</KEYWORD2>
      <KEYWORD2>SET</KEYWORD2>
      <KEYWORD2>SET_DIRECTORY_PROPERTIES</KEYWORD2>
      <KEYWORD2>SET_SOURCE_FILES_PROPERTIES</KEYWORD2>
      <KEYWORD2>SET_TARGET_PROPERTIES</KEYWORD2>
      <KEYWORD2>SET_TESTS_PROPERTIES</KEYWORD2>
      <KEYWORD2>SITE_NAME</KEYWORD2>
      <KEYWORD2>SOURCE_GROUP</KEYWORD2>
      <KEYWORD2>STRING</KEYWORD2>
      <KEYWORD2>SUBDIR_DEPENDS</KEYWORD2>
      <KEYWORD2>SUBDIRS</KEYWORD2>
      <KEYWORD2>TARGET_LINK_LIBRARIES</KEYWORD2>
      <KEYWORD2>TRY_COMPILE</KEYWORD2>
      <KEYWORD2>TRY_RUN</KEYWORD2>
      <KEYWORD2>USE_MANGLED_MESA</KEYWORD2>
      <KEYWORD2>UTILITY_SOURCE</KEYWORD2>
      <KEYWORD2>VARIABLE_REQUIRES</KEYWORD2>
      <KEYWORD2>VTK_MAKE_INSTANTIATOR</KEYWORD2>
      <KEYWORD2>VTK_WRAP_JAVA</KEYWORD2>
      <KEYWORD2>VTK_WRAP_PYTHON</KEYWORD2>
      <KEYWORD2>VTK_WRAP_TCL</KEYWORD2>
      <KEYWORD2>WRITE_FILE</KEYWORD2>
    </KEYWORDS>

	</RULES>
  <RULES SET="LITERAL" DEFAULT="LITERAL1" ESCAPE="\">
    <!-- Variables -->
    <SPAN TYPE="KEYWORD2" NO_LINE_BREAK="TRUE">
      <BEGIN>${</BEGIN>
      <END>}</END>
    </SPAN>
    <MARK_FOLLOWING TYPE="KEYWORD2">$</MARK_FOLLOWING>
  </RULES>

</MODE>


