aboutsummaryrefslogtreecommitdiffstats
path: root/queries/cpp/highlights.scm
diff options
context:
space:
mode:
authorAmaan Qureshi <amaanq12@gmail.com>2023-02-24 06:37:45 -0500
committerStephan Seitz <stephan.seitz@fau.de>2023-03-03 07:07:52 -0800
commit33ba346e60c3151fcdafc55d0e547556dc803c03 (patch)
treed1c5467293ca8fe4b0f44f05f4d4aa303877a2f8 /queries/cpp/highlights.scm
parentdocs: add `@keyword.coroutine` (diff)
downloadnvim-treesitter-33ba346e60c3151fcdafc55d0e547556dc803c03.tar
nvim-treesitter-33ba346e60c3151fcdafc55d0e547556dc803c03.tar.gz
nvim-treesitter-33ba346e60c3151fcdafc55d0e547556dc803c03.tar.bz2
nvim-treesitter-33ba346e60c3151fcdafc55d0e547556dc803c03.tar.lz
nvim-treesitter-33ba346e60c3151fcdafc55d0e547556dc803c03.tar.xz
nvim-treesitter-33ba346e60c3151fcdafc55d0e547556dc803c03.tar.zst
nvim-treesitter-33ba346e60c3151fcdafc55d0e547556dc803c03.zip
feat!: add `@keyword.coroutine` capture
Diffstat (limited to 'queries/cpp/highlights.scm')
-rw-r--r--queries/cpp/highlights.scm15
1 files changed, 9 insertions, 6 deletions
diff --git a/queries/cpp/highlights.scm b/queries/cpp/highlights.scm
index 1f770e9f8..0f12dd8df 100644
--- a/queries/cpp/highlights.scm
+++ b/queries/cpp/highlights.scm
@@ -143,12 +143,20 @@
"template"
"typename"
"using"
- "co_await"
"concept"
"requires"
] @keyword
[
+ "co_await"
+] @keyword.coroutine
+
+[
+ "co_yield"
+ "co_return"
+] @keyword.coroutine.return
+
+[
"public"
"private"
"protected"
@@ -157,11 +165,6 @@
] @type.qualifier
[
- "co_yield"
- "co_return"
-] @keyword.return
-
-[
"new"
"delete"