diff options
| -rw-r--r-- | lockfile.json | 2 | ||||
| -rw-r--r-- | queries/cpp/highlights.scm | 16 |
2 files changed, 7 insertions, 11 deletions
diff --git a/lockfile.json b/lockfile.json index 28d10e08e..55e800dc9 100644 --- a/lockfile.json +++ b/lockfile.json @@ -27,7 +27,7 @@ "revision": "02e6ecbe05633bc9a82c2a56a86a1c2fcb3c4725" }, "cpp": { - "revision": "ca00ce962987132e4794b0c662f5d275217f05f4" + "revision": "a7652fce5943c9d5d9c49dd8e3256a699aa33bf5" }, "css": { "revision": "a03f1d2d1dfbf6f8e0fdca5f9ff030228241eb57" 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)) |
