diff options
| author | Stephan Seitz <sseitz@nvidia.com> | 2021-09-16 18:19:11 +0200 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2021-09-17 22:03:47 +0200 |
| commit | 37d93ec0177d4ff2a8ed7e20575642b6e8424666 (patch) | |
| tree | 426d1b4346683600e967dc49054e8b7e4d7327c7 /queries/cpp | |
| parent | highlights(cpp): add support for coroutines (diff) | |
| download | nvim-treesitter-37d93ec0177d4ff2a8ed7e20575642b6e8424666.tar nvim-treesitter-37d93ec0177d4ff2a8ed7e20575642b6e8424666.tar.gz nvim-treesitter-37d93ec0177d4ff2a8ed7e20575642b6e8424666.tar.bz2 nvim-treesitter-37d93ec0177d4ff2a8ed7e20575642b6e8424666.tar.lz nvim-treesitter-37d93ec0177d4ff2a8ed7e20575642b6e8424666.tar.xz nvim-treesitter-37d93ec0177d4ff2a8ed7e20575642b6e8424666.tar.zst nvim-treesitter-37d93ec0177d4ff2a8ed7e20575642b6e8424666.zip | |
highlights(c/cpp): react to upstream changes to attributes
Diffstat (limited to 'queries/cpp')
| -rw-r--r-- | queries/cpp/highlights.scm | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/queries/cpp/highlights.scm b/queries/cpp/highlights.scm index b4cbf7553..c88bce7e9 100644 --- a/queries/cpp/highlights.scm +++ b/queries/cpp/highlights.scm @@ -124,12 +124,15 @@ "using" "virtual" "co_await" - "co_yield" - "co_return" (auto) ] @keyword [ + "co_yield" + "co_return" +] @keyword.return + +[ "new" "delete" @@ -150,9 +153,3 @@ ] @keyword.operator "::" @operator - -; Annotations (not fully supported by parser) - -((ERROR) @attribute - (#vim-match? @attribute "\[?\[.*\]\]?.*$")) -(attribute) @attribute |
