fix: Move coroutines keywords to similar control flow highlight
This commit is contained in:
parent
ad505e6568
commit
2596c350cd
1 changed files with 3 additions and 15 deletions
|
@ -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"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue