mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 11:15:24 +03:00
[tree-sitter] Add some scopes to the C++ highlights.scm
This commit is contained in:
parent
d42bae7c28
commit
f9232482d0
@ -124,6 +124,11 @@
|
||||
(function_declarator
|
||||
(identifier) @entity.name.function.cpp)
|
||||
|
||||
; The "foo" in `void Bar::foo () {`.
|
||||
(function_declarator
|
||||
declarator: (qualified_identifier
|
||||
name: (identifier) @entity.name.function.cpp))
|
||||
|
||||
(function_declarator
|
||||
(field_identifier) @entity.name.function.method.cpp)
|
||||
|
||||
@ -139,6 +144,12 @@
|
||||
field: (field_identifier) @support.other.function.cpp)
|
||||
(#set! capture.final true))
|
||||
|
||||
; The "foo" in `troz::foo(...)`.
|
||||
(call_expression
|
||||
function: (qualified_identifier
|
||||
name: (identifier) @support.other.function.cpp)
|
||||
(#set! capture.final true))
|
||||
|
||||
(call_expression
|
||||
(identifier) @support.other.function.cpp
|
||||
(#set! capture.final true))
|
||||
@ -206,6 +217,11 @@
|
||||
(assignment_expression
|
||||
left: (identifier) @variable.other.assignment.cpp)
|
||||
|
||||
; The "foo" in `bar.foo = "baz"`.
|
||||
(assignment_expression
|
||||
left: (field_expression
|
||||
field: (field_identifier) @variable.other.member.assignment.cpp))
|
||||
|
||||
(reference_declarator
|
||||
(identifier) @variable.declaration.cpp)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user