fix: Move coroutines keywords to similar control flow highlight

This commit is contained in:
Caio Piccirillo 2025-08-25 09:42:53 -03:00
parent ad505e6568
commit 2596c350cd

View file

@ -25,15 +25,6 @@
(module_name (module_name
(identifier) @module))) (identifier) @module)))
(co_await_expression
operator: "co_await" @keyword.operator)
(co_return_statement
"co_return" @keyword.operator)
(co_yield_statement
"co_yield" @keyword.operator)
(call_expression (call_expression
function: (qualified_identifier function: (qualified_identifier
name: (identifier) @function)) name: (identifier) @function))
@ -119,6 +110,9 @@ type: (primitive_type) @type.builtin
"case" "case"
"catch" "catch"
"class" "class"
"co_await"
"co_return"
"co_yield"
"concept" "concept"
"consteval" "consteval"
"constexpr" "constexpr"
@ -168,12 +162,6 @@ type: (primitive_type) @type.builtin
(type_qualifier) (type_qualifier)
] @keyword ] @keyword
[
"co_await"
"co_return"
"co_yield"
] @keyword.operator
[ [
"#define" "#define"
"#elif" "#elif"