diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2021-11-27 12:52:45 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2021-11-28 15:01:34 +0100 |
| commit | ad615ffc4c829564adb2a183c78f334b42c4a959 (patch) | |
| tree | 32d564c26e0acc5be46c9c09eb12aca76b8ca609 /queries/yaml | |
| parent | 28cc92a2f626c57ffd63644a3512268b480656ed (diff) | |
injections(yaml): inject bash on key "run"
Diffstat (limited to 'queries/yaml')
| -rw-r--r-- | queries/yaml/injections.scm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/queries/yaml/injections.scm b/queries/yaml/injections.scm index 4bb7d675..958f196e 100644 --- a/queries/yaml/injections.scm +++ b/queries/yaml/injections.scm @@ -1 +1,10 @@ (comment) @comment + +(block_mapping_pair + key: (flow_node) @_run (#eq? @_run "run") + value: (flow_node + (plain_scalar) @bash)) + +(block_mapping_pair + key: (flow_node) @_run (#eq? @_run "run") + value: (block_node) @bash (#offset! @bash 0 0 0 0)) |
