| " Vim syntax file |
| " Program: CMake - Cross-Platform Makefile Generator |
| " Version: @VERSION@ |
| " Language: CMake |
| " Author: Andy Cedilnik <andy.cedilnik@kitware.com>, |
| " Nicholas Hutchinson <nshutchinson@gmail.com>, |
| " Patrick Boettcher <patrick.boettcher@posteo.de> |
| " Maintainer: Dimitri Merejkowsky <d.merej@gmail.com> |
| " Former Maintainer: Karthik Krishnan <karthik.krishnan@kitware.com> |
| " Last Change: @DATE@ |
| " |
| " Licence: The CMake license applies to this file. See |
| " https://cmake.org/licensing |
| " This implies that distribution with Vim is allowed |
| |
| if exists("b:current_syntax") |
| finish |
| endif |
| let s:keepcpo= &cpo |
| set cpo&vim |
| |
| syn region cmakeComment start="#" end="$" contains=cmakeTodo,cmakeLuaComment,@Spell |
| syn region cmakeLuaComment start="\[\z(=*\)\[" end="\]\z1\]" contains=cmakeTodo,@Spell |
| |
| syn match cmakeEscaped /\(\\\\\|\\"\|\\n\|\\t\)/ contained |
| syn region cmakeRegistry start="\[" end="]" contained oneline contains=cmakeTodo,cmakeEscaped |
| |
| syn region cmakeGeneratorExpression start="$<" end=">" contained oneline contains=cmakeVariableValue,cmakeProperty,cmakeGeneratorExpressions,cmakeTodo |
| |
| syn region cmakeString start='"' end='"' contained contains=cmakeTodo,cmakeVariableValue,cmakeEscaped |
| |
| syn region cmakeVariableValue start="${" end="}" contained oneline contains=cmakeVariable,cmakeTodo |
| |
| syn region cmakeEnvironment start="$ENV{" end="}" contained oneline contains=cmakeTodo |
| |
| syn region cmakeArguments start="(" end=")" contains=ALLBUT,cmakeCommand,cmakeCommandConditional,cmakeCommandRepeat,cmakeCommandDeprecated,cmakeArguments,cmakeTodo |
| |
| syn case match |
| |
| syn keyword cmakeProperty contained |
| @PROPERTIES@ |
| |
| syn keyword cmakeVariable contained |
| @VARIABLE_LIST@ |
| |
| syn keyword cmakeModule contained |
| @MODULES@ |
| |
| @KEYWORDS@ |
| |
| syn keyword cmakeGeneratorExpressions contained |
| @GENERATOR_EXPRESSIONS@ |
| |
| syn case ignore |
| |
| syn keyword cmakeCommand |
| @COMMAND_LIST@ |
| \ nextgroup=cmakeArguments |
| |
| syn keyword cmakeCommandConditional |
| @CONDITIONALS@ |
| \ nextgroup=cmakeArguments |
| |
| syn keyword cmakeCommandRepeat |
| @LOOPS@ |
| \ nextgroup=cmakeArguments |
| |
| syn keyword cmakeCommandDeprecated |
| @DEPRECATED@ |
| \ nextgroup=cmakeArguments |
| |
| syn case match |
| |
| syn keyword cmakeTodo |
| \ TODO FIXME XXX |
| \ contained |
| |
| hi def link cmakeCommand Function |
| 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 |
| hi def link cmakeGeneratorExpression WarningMsg |
| hi def link cmakeGeneratorExpressions Constant |
| hi def link cmakeLuaComment Comment |
| hi def link cmakeModule Include |
| hi def link cmakeProperty Constant |
| hi def link cmakeRegistry Underlined |
| hi def link cmakeString String |
| hi def link cmakeTodo TODO |
| hi def link cmakeVariableValue Type |
| hi def link cmakeVariable Identifier |
| |
| @KEYWORDS_HIGHLIGHT@ |
| |
| let b:current_syntax = "cmake" |
| |
| let &cpo = s:keepcpo |
| unlet s:keepcpo |
| |
| " vim: set nowrap: |