diff --git a/data/generators/cmake.xml.tpl b/generators/cmake.xml.tpl rename from data/generators/cmake.xml.tpl rename to generators/cmake.xml.tpl --- a/data/generators/cmake.xml.tpl +++ b/generators/cmake.xml.tpl @@ -31,7 +31,7 @@ endif() + +# In each function call below, all 3 named parameter lines should apply the same highlighting. +add_custom_command( + COMMAND true + COMMAND (true) + COMMAND true +) +add_custom_target(TargetName + WORKING_DIRECTORY somedir + COMMAND (true) + BYPRODUCTS somefile +) +execute_process( + COMMAND true + COMMAND (true) + COMMAND true +) +add_test( + NAME sometest + COMMAND (true) + WORKING_DIRECTORY somedir +) diff --git a/autotests/input/highlight.cmake b/input/highlight.cmake rename from autotests/input/highlight.cmake rename to input/highlight.cmake --- a/autotests/input/highlight.cmake +++ b/input/highlight.cmake @@ -109,3 +109,25 @@ ) endif() + +# In each function call below, all 3 named parameter lines should apply the same highlighting. +add_custom_command( + COMMAND true + COMMAND (true) + COMMAND true +) +add_custom_target(TargetName + WORKING_DIRECTORY somedir + COMMAND (true) + BYPRODUCTS somefile +) +execute_process( + COMMAND true + COMMAND (true) + COMMAND true +) +add_test( + NAME sometest + COMMAND (true) + WORKING_DIRECTORY somedir +) diff --git a/autotests/reference/highlight.cmake.ref b/reference/highlight.cmake.ref rename from autotests/reference/highlight.cmake.ref rename to reference/highlight.cmake.ref --- a/autotests/reference/highlight.cmake.ref +++ b/reference/highlight.cmake.ref @@ -109,3 +109,25 @@ )

endif()
+
+# In each function call below, all 3 named parameter lines should apply the same highlighting.
+add_custom_command(
+ COMMAND true
+ COMMAND (true)
+ COMMAND true
+)
+add_custom_target(TargetName
+ WORKING_DIRECTORY somedir
+ COMMAND (true)
+ BYPRODUCTS somefile
+)
+execute_process(
+ COMMAND true
+ COMMAND (true)
+ COMMAND true
+)
+add_test(
+ NAME sometest
+ COMMAND (true)
+ WORKING_DIRECTORY somedir
+)
diff --git a/data/syntax/cmake.xml b/syntax/cmake.xml rename from data/syntax/cmake.xml rename to syntax/cmake.xml --- a/data/syntax/cmake.xml +++ b/syntax/cmake.xml @@ -31,7 +31,7 @@ + + + + + + + @@ -3073,18 +3080,30 @@ + + + + + + + + + + + + @@ -3134,10 +3153,16 @@ + + + + + +