Ticket #2084: cmake.syntax

File cmake.syntax, 1.2 KB (added by ralesk, 9 years ago)

cmake syntax file

Line 
1# CMake syntax highlighting
2#
3# Author: Henrik Pauli <henrik.pauli@uhusystems.com>
4
5wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_
6
7context default
8        keyword ( brightcyan
9        keyword ) brightcyan
10       
11        keyword ${\[^}\]+} brightgreen
12       
13        keyword whole IF magenta
14        keyword whole ELSE magenta
15        keyword whole ENDIF magenta
16       
17        keyword whole cmake_minimum_required yellow
18        keyword whole PROJECT yellow
19        keyword whole SET yellow
20        keyword whole INCLUDE yellow
21        keyword whole ADD_+ yellow
22        keyword whole SET_+ yellow
23        keyword whole TARGET_+ yellow
24        keyword whole FIND_+ yellow
25        keyword whole find_+ yellow
26        keyword whole file yellow
27        keyword whole file_+ yellow
28        keyword whole configure_+ yellow
29        keyword whole install yellow
30       
31        keyword whole MESSAGE brightmagenta
32       
33        keyword whole STATIC white
34        keyword whole SHARED white
35       
36        keyword whole MATCHES white
37       
38        keyword whole ON brightcyan
39        keyword whole OFF brightcyan
40        keyword whole NOT brightcyan
41        keyword whole DEFINED brightcyan
42       
43        keyword whole NAMES white
44        keyword whole FILES white
45        keyword whole DIRECTORY white
46        keyword whole TARGETS white
47        keyword whole LIBRARY white
48        keyword whole DESTINATION white
49       
50        spellcheck
51
52context # \n brown
53
54context " " green
55        keyword ${\[^}\]+} brightgreen
56       
57        spellcheck