diff options
| author | David Hotham <david.hotham@metaswitch.com> | 2020-12-16 22:00:25 +0000 |
|---|---|---|
| committer | Thomas Vigouroux <tomvig38@gmail.com> | 2020-12-25 15:56:49 +0100 |
| commit | cafe733e23cc3822bb303d70e8f71fe1e72136c9 (patch) | |
| tree | 3f2eb224d15cd07caef2b607640068c74e173565 /queries/yaml | |
| parent | simplify treatement of escape sequences (diff) | |
| download | nvim-treesitter-cafe733e23cc3822bb303d70e8f71fe1e72136c9.tar nvim-treesitter-cafe733e23cc3822bb303d70e8f71fe1e72136c9.tar.gz nvim-treesitter-cafe733e23cc3822bb303d70e8f71fe1e72136c9.tar.bz2 nvim-treesitter-cafe733e23cc3822bb303d70e8f71fe1e72136c9.tar.lz nvim-treesitter-cafe733e23cc3822bb303d70e8f71fe1e72136c9.tar.xz nvim-treesitter-cafe733e23cc3822bb303d70e8f71fe1e72136c9.tar.zst nvim-treesitter-cafe733e23cc3822bb303d70e8f71fe1e72136c9.zip | |
wildcards to capture keys
Diffstat (limited to 'queries/yaml')
| -rw-r--r-- | queries/yaml/highlights.scm | 4 |
1 files 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 |
