mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 20:30:05 -04:00
feat(cylc): add parser and queries (#7225)
This commit is contained in:
parent
f9e9370a6f
commit
92d2501d69
7 changed files with 121 additions and 0 deletions
11
queries/cylc/injections.scm
Normal file
11
queries/cylc/injections.scm
Normal 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"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue