feat(cylc): add parser and queries (#7225)

This commit is contained in:
Elliot Fontaine 2024-10-31 17:56:58 +01:00 committed by GitHub
parent f9e9370a6f
commit 92d2501d69
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 121 additions and 0 deletions

View file

@ -0,0 +1,11 @@
((comment) @injection.content
(#set! injection.language "comment"))
; https://cylc.github.io/cylc-doc/latest/html/user-guide/task-implementation/job-scripts.html#jobscripts
((setting
key: (key) @_key
(#any-of? @_key
"script" "init-script" "env-script" "pre-script" "post-script" "err-script" "exit-script")
value: (_
(string_content) @injection.content))
(#set! injection.language "bash"))