on ce99ecc help sign in
helix/runtime/queries/cpp/highlights.scm
68 lines 1.1 kB history raw
1; inherits: c
3; Functions
5(call_expression
6 function: (scoped_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: (scoped_identifier
17 name: (identifier) @function))
19(function_declarator
20 declarator: (scoped_identifier
21 name: (identifier) @function))
23(function_declarator
24 declarator: (scoped_identifier
25 name: (identifier) @function))
27(function_declarator
28 declarator: (field_identifier) @function)
30; Types
32((namespace_identifier) @type
33 (#match? @type "^[A-Z]"))
35(auto) @type
37; Constants
39(this) @variable.builtin
40(nullptr) @constant
42; Keywords
44"catch" @keyword
45"class" @keyword
46"constexpr" @keyword
47"delete" @keyword
48"explicit" @keyword
49"final" @keyword
50"friend" @keyword
51"mutable" @keyword
52"namespace" @keyword
53"noexcept" @keyword
54"new" @keyword
55"override" @keyword
56"private" @keyword
57"protected" @keyword
58"public" @keyword
59"template" @keyword
60"throw" @keyword
61"try" @keyword
62"typename" @keyword
63"using" @keyword
64"virtual" @keyword
66; Strings
68(raw_string_literal) @string