feat!: drop modules, general refactor and cleanup

This commit is contained in:
Christian Clason 2023-06-12 09:54:30 -06:00
parent 310f0925ec
commit 692b051b09
1247 changed files with 6096 additions and 9074 deletions

View file

@ -0,0 +1,10 @@
[
(multiline_string)
(multiline_graph_string)
(top_section)
(sub_section_1)
(sub_section_2)
(runtime_section)
(task_section)
(graph_section)
] @fold

View file

@ -0,0 +1,72 @@
(comment) @comment @spell
(key) @property
(boolean) @boolean
(datetime) @string.special
(task_name) @function
(include_directive) @keyword.import
[
(section_name)
(namespace)
] @markup.heading
[
(integer)
(recurrence)
] @number
[
"["
"]"
"[["
"]]"
"[[["
"]]]"
"<"
">"
(graph_parenthesis)
] @punctuation.bracket
[
"\""
"\"\"\""
(unquoted_string)
(quoted_string)
(multiline_string)
] @string
[
(xtrigger_annotation)
(suicide_annotation)
] @attribute
[
"="
(assignment_operator)
(graph_logical)
(graph_arrow)
] @operator
(include_statement
path: (_)? @string.special.path)
(task_parameter
name: (_)? @variable.parameter
selection: (_)? @variable.parameter)
(task_output
":" @tag
(nametag) @variable.builtin
"?"? @tag)
[
(jinja2_expression)
(jinja2_statement)
(jinja2_comment)
(jinja2_shebang)
] @keyword.directive

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

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"))