nextflow-io / vscode-language-nextflow

Nextflow language support for Visual Studio Editor
MIT License
32 stars 14 forks source link

Syntax highlighting error with slashes #25

Open nick-youngblut opened 8 months ago

nick-youngblut commented 8 months ago

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 commented 4 months ago

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 commented 1 month ago

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 (https://github.com/nextflow-io/language-server/issues/8)