mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
Ticket #2084: cmake.syntax: preliminary syntax file for CMakeLists.txt files.
It's nowhere near complete, but it's better than nothing. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
12e8f5f498
commit
6d8b82b845
@ -9,6 +9,7 @@ SYNTAXFILES = \
|
||||
c.syntax \
|
||||
cabal.syntax \
|
||||
changelog.syntax \
|
||||
cmake.syntax \
|
||||
cs.syntax \
|
||||
css.syntax \
|
||||
cxx.syntax \
|
||||
|
@ -67,6 +67,9 @@ include tt.syntax
|
||||
file (.\*[Mm]akefile[\\\.A-Za-z0-9]\*|..\*\\.mk|Kbuild)$ Makefile
|
||||
include makefile.syntax
|
||||
|
||||
file CMakeLists.txt$ CMake
|
||||
include cmake.syntax
|
||||
|
||||
file ..\*\\.(pp|PP|pas|PAS|dpr|DPR|inc|INC)$ Pascal\sProgram
|
||||
include pascal.syntax
|
||||
|
||||
|
57
misc/syntax/cmake.syntax
Normal file
57
misc/syntax/cmake.syntax
Normal file
@ -0,0 +1,57 @@
|
||||
# CMake syntax highlighting
|
||||
#
|
||||
# Author: Henrik Pauli <henrik.pauli@uhusystems.com>
|
||||
|
||||
wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_
|
||||
|
||||
context default
|
||||
keyword ( brightcyan
|
||||
keyword ) brightcyan
|
||||
|
||||
keyword ${\[^}\]+} brightgreen
|
||||
|
||||
keyword whole IF magenta
|
||||
keyword whole ELSE magenta
|
||||
keyword whole ENDIF magenta
|
||||
|
||||
keyword whole cmake_minimum_required yellow
|
||||
keyword whole PROJECT yellow
|
||||
keyword whole SET yellow
|
||||
keyword whole INCLUDE yellow
|
||||
keyword whole ADD_+ yellow
|
||||
keyword whole SET_+ yellow
|
||||
keyword whole TARGET_+ yellow
|
||||
keyword whole FIND_+ yellow
|
||||
keyword whole find_+ yellow
|
||||
keyword whole file yellow
|
||||
keyword whole file_+ yellow
|
||||
keyword whole configure_+ yellow
|
||||
keyword whole install yellow
|
||||
|
||||
keyword whole MESSAGE brightmagenta
|
||||
|
||||
keyword whole STATIC white
|
||||
keyword whole SHARED white
|
||||
|
||||
keyword whole MATCHES white
|
||||
|
||||
keyword whole ON brightcyan
|
||||
keyword whole OFF brightcyan
|
||||
keyword whole NOT brightcyan
|
||||
keyword whole DEFINED brightcyan
|
||||
|
||||
keyword whole NAMES white
|
||||
keyword whole FILES white
|
||||
keyword whole DIRECTORY white
|
||||
keyword whole TARGETS white
|
||||
keyword whole LIBRARY white
|
||||
keyword whole DESTINATION white
|
||||
|
||||
spellcheck
|
||||
|
||||
context # \n brown
|
||||
|
||||
context " " green
|
||||
keyword ${\[^}\]+} brightgreen
|
||||
|
||||
spellcheck
|
Loading…
Reference in New Issue
Block a user