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

Syntax highlighting error with slashes #25

Open
nick-youngblut opened this issue Mar 15, 2024 · 2 comments
Open

Syntax highlighting error with slashes #25

nick-youngblut opened this issue Mar 15, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@nick-youngblut
Copy link

I'm creating dynamic publishDir paths (e.g., publishDir { file(params.output_dir) / "QC/${step}/multiqc/" }), which breaks the syntax coloring (see attached).

Screenshot 2024-03-14 at 6 04 41 PM

I'm using the 2022-4-13, 09:46:21 release of the nextflow.nextflow VS Code extension.

@nick-youngblut
Copy link
Author

Another example that I just ran into, which is caused by caiman_output/ in the publishDir line:

Screenshot 2024-07-30 at 3 48 09 PM

@bentsherman
Copy link
Member

Still present in v1.0.0

Here is another minimal example:

image

The slashes are being parsed as slashy strings. Might be able to fix it in the textmate grammar with some hack, otherwise it might require semantic highlighting (nextflow-io/language-server#8)

@bentsherman bentsherman changed the title syntax coloring error for publishDir { } Syntax highlighting error with slashes Oct 29, 2024
@bentsherman bentsherman added the bug Something isn't working label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants