mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 20:30:05 -04:00
feat(queries-cpp): Add lambda capture group to colorize lambda capture brackets in c++
This commit is contained in:
parent
42fc28ba91
commit
ca7bb3836a
1 changed files with 6 additions and 0 deletions
|
|
@ -29,6 +29,12 @@
|
||||||
(function_declarator
|
(function_declarator
|
||||||
declarator: (field_identifier) @function.method)
|
declarator: (field_identifier) @function.method)
|
||||||
|
|
||||||
|
; lambdas
|
||||||
|
((lambda_expression
|
||||||
|
captures: (lambda_capture_specifier
|
||||||
|
"[" @lambda.capture.bracket
|
||||||
|
"]" @lambda.capture.bracket)))
|
||||||
|
|
||||||
(concept_definition
|
(concept_definition
|
||||||
name: (identifier) @type.definition)
|
name: (identifier) @type.definition)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue