-
Notifications
You must be signed in to change notification settings - Fork 642
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
Update syntax docs #5542
Update syntax docs #5542
Conversation
Signed-off-by: Ben Sherman <bentshermann@gmail.com>
✅ Deploy Preview for nextflow-docs-staging ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
||
```nextflow | ||
def id = 'SRA001' | ||
assert 'SRA001.fastq' ~= /${id}\.f(?:ast)?q/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wasn't said to keep slashy string (with interpolation) and deprecate dollar slash strings?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
neither are supported. I am looking into slashy strings here but until I can get it to work, they are effectively not supported
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
think we should consider a lack in the lang server, but i'd keep in the lang reference
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dynamic slashy strings are not mentioned in the language reference. The effort to support them (nextflow-io/language-server#51) is purely exploratory. There is no guarantee that we can support it or that it would be wise to do so. Meanwhile, a regular dynamic string can be used by simply replacing \
with \\
.
I will add it in the future if I feel confident that we can support it.
Signed-off-by: Ben Sherman <bentshermann@gmail.com> Signed-off-by: Christopher Hakkaart <chris.hakkaart@seqera.io>
Minor corrections to syntax rules for strings and the workaround for dynamic config includes.