[cmake]: Add highlighting for set command

This commit is contained in:
Uy Ha 2021-09-09 22:01:56 +02:00 committed by Stephan Seitz
parent ef1c89f73c
commit 16f4833b57

View file

@ -50,3 +50,17 @@
(argument)* @parameter
)
(normal_command
(identifier) @function.builtin
. (argument) @variable
(#match? @function.builtin "\\c^(set)$"))
(normal_command
(identifier) @function.builtin
. (argument)
. (argument)
(argument) @constant
(#any-of? @constant "PARENT_SCOPE" "CACHE" "FORCE")
(#match? @function.builtin "\\c^(set)$")
)