diff options
| author | Uy Ha <hchanuy@gmail.com> | 2021-09-10 15:19:10 +0200 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2021-09-17 21:06:36 +0200 |
| commit | 2540831e20fbc8a21e5661563125f7444f5cf69d (patch) | |
| tree | c9b91af741fe423ea28f6074b8c16a5ce30748ca | |
| parent | Update ledger injections (diff) | |
| download | nvim-treesitter-2540831e20fbc8a21e5661563125f7444f5cf69d.tar nvim-treesitter-2540831e20fbc8a21e5661563125f7444f5cf69d.tar.gz nvim-treesitter-2540831e20fbc8a21e5661563125f7444f5cf69d.tar.bz2 nvim-treesitter-2540831e20fbc8a21e5661563125f7444f5cf69d.tar.lz nvim-treesitter-2540831e20fbc8a21e5661563125f7444f5cf69d.tar.xz nvim-treesitter-2540831e20fbc8a21e5661563125f7444f5cf69d.tar.zst nvim-treesitter-2540831e20fbc8a21e5661563125f7444f5cf69d.zip | |
[cmake] add highlights for `if` command constant
| -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 9be78c1b0..cecf2f842 100644 --- a/queries/cmake/highlights.scm +++ b/queries/cmake/highlights.scm @@ -64,3 +64,15 @@ (#match? @function.builtin "\\c^(set)$") ) +(if_command + (if) + (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" + ) +) |
