summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Hotham <david.hotham@metaswitch.com>2020-12-16 22:00:25 +0000
committerThomas Vigouroux <tomvig38@gmail.com>2020-12-25 15:56:49 +0100
commitcafe733e23cc3822bb303d70e8f71fe1e72136c9 (patch)
tree3f2eb224d15cd07caef2b607640068c74e173565
parentdc0432aa54aec38ebf2676825518bddf7d2d37bc (diff)
wildcards to capture keys
-rw-r--r--queries/yaml/highlights.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/queries/yaml/highlights.scm b/queries/yaml/highlights.scm
index 64a5ff33..1517e913 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