From 662f3aaaddfbf477ce1e2bf686efa81062600e9c Mon Sep 17 00:00:00 2001 From: John Drouhard Date: Fri, 24 Sep 2021 10:03:28 -0500 Subject: cpp: update lockfile.json and fix for breaking changes --- queries/cpp/highlights.scm | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'queries/cpp/highlights.scm') diff --git a/queries/cpp/highlights.scm b/queries/cpp/highlights.scm index e0e5c3de7..a7d387fc7 100644 --- a/queries/cpp/highlights.scm +++ b/queries/cpp/highlights.scm @@ -27,10 +27,6 @@ (function_declarator declarator: (field_identifier) @method) -(template_function - name: (scoped_identifier - name: (identifier) @function)) - (namespace_identifier) @namespace ((namespace_identifier) @type @@ -40,16 +36,16 @@ (namespace_definition name: (identifier) @namespace) -(using_declaration . "using" . "namespace" . [(scoped_identifier) (identifier)] @namespace) +(using_declaration . "using" . "namespace" . [(qualified_identifier) (identifier)] @namespace) (destructor_name (identifier) @method) (function_declarator - declarator: (scoped_identifier + declarator: (qualified_identifier name: (identifier) @function)) ((function_declarator - declarator: (scoped_identifier + declarator: (qualified_identifier name: (identifier) @constructor)) (#match? @constructor "^[A-Z]")) @@ -57,7 +53,7 @@ "static_assert" @function.builtin (call_expression - function: (scoped_identifier + function: (qualified_identifier name: (identifier) @function)) (call_expression @@ -68,7 +64,7 @@ function: (identifier) @constructor) (#match? @constructor "^[A-Z]")) ((call_expression - function: (scoped_identifier + function: (qualified_identifier name: (identifier) @constructor)) (#match? @constructor "^[A-Z]")) @@ -77,7 +73,7 @@ field: (field_identifier) @constructor)) (#match? @constructor "^[A-Z]")) -;; constructing a type in a intizializer list: Constructor (): **SuperType (1)** +;; constructing a type in an initializer list: Constructor (): **SuperType (1)** ((field_initializer (field_identifier) @constructor (argument_list)) -- cgit v1.2.3-70-g09d2