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

16
queries/cylc/indents.scm Normal file
View file

@ -0,0 +1,16 @@
[
(top_section)
(sub_section_1)
(sub_section_2)
(graph_section)
(runtime_section)
(task_section)
] @indent.begin
(multiline_string
quotes_close: _ @indent.end) @indent.begin
(multiline_graph_string
quotes_close: _ @indent.end) @indent.begin
(line_continuation) @indent.zero