diff options
| author | Uy Ha <hchanuy@gmail.com> | 2023-02-27 16:55:01 +0000 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2023-02-27 14:52:26 -0800 |
| commit | 28475d5676c478c55ecc293c75b10bcb782467df (patch) | |
| tree | dd5dcd223991044b74659404f92967bdc20f853d | |
| parent | only match unquoted arguments (diff) | |
| download | nvim-treesitter-28475d5676c478c55ecc293c75b10bcb782467df.tar nvim-treesitter-28475d5676c478c55ecc293c75b10bcb782467df.tar.gz nvim-treesitter-28475d5676c478c55ecc293c75b10bcb782467df.tar.bz2 nvim-treesitter-28475d5676c478c55ecc293c75b10bcb782467df.tar.lz nvim-treesitter-28475d5676c478c55ecc293c75b10bcb782467df.tar.xz nvim-treesitter-28475d5676c478c55ecc293c75b10bcb782467df.tar.zst nvim-treesitter-28475d5676c478c55ecc293c75b10bcb782467df.zip | |
add highlighting for elseif
| -rw-r--r-- | queries/cmake/highlights.scm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/queries/cmake/highlights.scm b/queries/cmake/highlights.scm index 576e19cd8..f528a04dc 100644 --- a/queries/cmake/highlights.scm +++ b/queries/cmake/highlights.scm @@ -84,6 +84,18 @@ "VERSION_LESS" "VERSION_GREATER" "VERSION_EQUAL" "VERSION_LESS_EQUAL" "VERSION_GREATER_EQUAL" ) ) +(elseif_command + (elseif) + (argument) @keyword.operator + (#any-of? @keyword.operator "NOT" "AND" "OR" + "COMMAND" "POLICY" "TARGET" "TEST" "DEFINED" "IN_LIST" + "EXISTS" "IS_NEWER_THAN" "IS_DIRECTORY" "IS_SYMLINK" "IS_ABSOLUTE" + "MATCHES" + "LESS" "GREATER" "EQUAL" "LESS_EQUAL" "GREATER_EQUAL" + "STRLESS" "STRGREATER" "STREQUAL" "STRLESS_EQUAL" "STRGREATER_EQUAL" + "VERSION_LESS" "VERSION_GREATER" "VERSION_EQUAL" "VERSION_LESS_EQUAL" "VERSION_GREATER_EQUAL" + ) +) (normal_command (identifier) @function.builtin |
