Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

revise: updates the WDL TextMate grammar #4

Merged
merged 1 commit into from
Jul 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions syntaxes/example.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,27 @@ struct AStruct {
String member
}

## # Here are some more
## _double_ pound lines.
# (These should not be markdown highlighted, as they are single number sign comments).
#
# **Here** are some more
# _single_ pound lines.
#
# > And a quote

task a_task {
meta
# Here is a comment between `meta` and the parenthesis.
{
# Here is a comment within `meta`.
an_escaped_string: "bar \\ \n \t \' \" \~ \$ \000 \xFF \uFFFF \UFFFFFFFF"
a_string_with_placeholders: "${foo} ~{bar}"
a_multiline_string: <<<
${some_placeholder}
this
spans
multiple
lines
>>>
a_true: true
a_false: false
an_integer: 42
Expand All @@ -34,6 +46,8 @@ task a_task {
subkey_four: false,
}
an_undefined_value: null
# The '2' at the end of this identifier shouldn't be highlighted as a numeric.
a_name_with_foo2: false
}

parameter_meta
Expand Down Expand Up @@ -67,6 +81,10 @@ task a_task {
# the TextMate language that it's a custom struct.
}

command <<<
echo "Hello, ~{world}"
>>>

output
# Here is a comment before the output.
{
Expand Down
Loading