From cafe733e23cc3822bb303d70e8f71fe1e72136c9 Mon Sep 17 00:00:00 2001 From: David Hotham Date: Wed, 16 Dec 2020 22:00:25 +0000 Subject: [PATCH] wildcards to capture keys --- queries/yaml/highlights.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/queries/yaml/highlights.scm b/queries/yaml/highlights.scm index 64a5ff338..1517e9134 100644 --- a/queries/yaml/highlights.scm +++ b/queries/yaml/highlights.scm @@ -1,5 +1,5 @@ -(block_mapping_pair key: (flow_node) @field) -(flow_pair key: (flow_node) @field) ; This one doesn't seem to work, no idea what's wrong with it. +(block_mapping_pair key: (_) @field) +(flow_mapping (_ key: (_) @field)) (boolean_scalar) @boolean (null_scalar) @constant.builtin (double_quote_scalar) @string