on 0b8a00a help sign in
helix/runtime/queries/cpp/highlights.scm
67 lines 1.1 kB history raw
1; inherits: c
3; Functions
5(call_expression
6 function: (qualified_identifier
7 name: (identifier) @function))
9(template_function
10 name: (identifier) @function)
12(template_method
13 name: (field_identifier) @function)
15(template_function
16 name: (identifier) @function)
18(function_declarator
19 declarator: (qualified_identifier
20 name: (identifier) @function))
22(function_declarator
23 declarator: (qualified_identifier
24 name: (identifier) @function))
26(function_declarator
27 declarator: (field_identifier) @function)
29; Types
31((namespace_identifier) @type
32 (#match? @type "^[A-Z]"))
34(auto) @type
36; Constants
38(this) @variable.builtin
39(nullptr) @constant
41; Keywords
43"catch" @keyword
44"class" @keyword
45"constexpr" @keyword
46"delete" @keyword
47"explicit" @keyword
48"final" @keyword
49"friend" @keyword
50"mutable" @keyword
51"namespace" @keyword
52"noexcept" @keyword
53"new" @keyword
54"override" @keyword
55"private" @keyword
56"protected" @keyword
57"public" @keyword
58"template" @keyword
59"throw" @keyword
60"try" @keyword
61"typename" @keyword
62"using" @keyword
63"virtual" @keyword
65; Strings
67(raw_string_literal) @string