aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUy Ha <hchanuy@gmail.com>2021-06-25 10:51:26 +0200
committerStephan Seitz <stephan.lauf@yahoo.de>2021-07-02 08:37:02 +0200
commit4ab1647f20f4338494108433ad47ef24791f9a8d (patch)
treec4868fc6267ad378c8ab809d60f5e7c1e6f6df36
parent Remove non-foldable commands (incorrect copy and paste) (diff)
downloadnvim-treesitter-4ab1647f20f4338494108433ad47ef24791f9a8d.tar
nvim-treesitter-4ab1647f20f4338494108433ad47ef24791f9a8d.tar.gz
nvim-treesitter-4ab1647f20f4338494108433ad47ef24791f9a8d.tar.bz2
nvim-treesitter-4ab1647f20f4338494108433ad47ef24791f9a8d.tar.lz
nvim-treesitter-4ab1647f20f4338494108433ad47ef24791f9a8d.tar.xz
nvim-treesitter-4ab1647f20f4338494108433ad47ef24791f9a8d.tar.zst
nvim-treesitter-4ab1647f20f4338494108433ad47ef24791f9a8d.zip
Highlight only command name instead of the whole call
-rw-r--r--queries/cmake/highlights.scm28
1 files changed, 14 insertions, 14 deletions
diff --git a/queries/cmake/highlights.scm b/queries/cmake/highlights.scm
index 933c7937b..1f2786e23 100644
--- a/queries/cmake/highlights.scm
+++ b/queries/cmake/highlights.scm
@@ -11,27 +11,27 @@
"$CACHE"
] @variable.builtin
+(normal_command (identifier) @function)
[
- (normal_command)
- (function_command)
- (endfunction_command)
- (macro_command)
- (endmacro_command)
- (message_command)
+ (function)
+ (endfunction)
+ (macro)
+ (endmacro)
+ (message)
] @function
[
- (if_command)
- (elseif_command)
- (else_command)
- (endif_command)
+ (if)
+ (elseif)
+ (else)
+ (endif)
] @conditional
[
- (foreach_command)
- (endforeach_command)
- (while_command)
- (endwhile_command)
+ (foreach)
+ (endforeach)
+ (while)
+ (endwhile)
] @repeat
[