Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/cpp/highlights.scm')
| -rw-r--r-- | runtime/queries/cpp/highlights.scm | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/runtime/queries/cpp/highlights.scm b/runtime/queries/cpp/highlights.scm index c1d14a0b..291163d3 100644 --- a/runtime/queries/cpp/highlights.scm +++ b/runtime/queries/cpp/highlights.scm @@ -1,3 +1,26 @@ +; inherits: c + +; Constants + +(this) @variable.builtin +(nullptr) @constant.builtin + +; Types + +(using_declaration ("using" "namespace" (identifier) @namespace)) +(using_declaration ("using" "namespace" (qualified_identifier name: (identifier) @namespace))) +(namespace_definition name: (namespace_identifier) @namespace) +(namespace_identifier) @namespace + +(qualified_identifier name: (identifier) @type.enum.variant) + +(auto) @type +"decltype" @type + +(ref_qualifier ["&" "&&"] @type.builtin) +(reference_declarator ["&" "&&"] @type.builtin) +(abstract_reference_declarator ["&" "&&"] @type.builtin) + ; Functions ; These casts are parsed as function calls, but are not. @@ -28,27 +51,6 @@ (function_declarator declarator: (field_identifier) @function) -; Types - -(using_declaration ("using" "namespace" (identifier) @namespace)) -(using_declaration ("using" "namespace" (qualified_identifier name: (identifier) @namespace))) -(namespace_definition name: (namespace_identifier) @namespace) -(namespace_identifier) @namespace - -(qualified_identifier name: (identifier) @type.enum.variant) - -(auto) @type -"decltype" @type - -(ref_qualifier ["&" "&&"] @type.builtin) -(reference_declarator ["&" "&&"] @type.builtin) -(abstract_reference_declarator ["&" "&&"] @type.builtin) - -; Constants - -(this) @variable.builtin -(nullptr) @constant.builtin - ; Parameters (parameter_declaration @@ -132,5 +134,3 @@ ; Strings (raw_string_literal) @string - -; inherits: c |