snakemake / snakemake-lang-vscode-plugin

Language support and snippets for Snakemake workflows (Snakefile, *.smk) for Visual Studio Code and Apache Theia.
MIT License
13 stars 13 forks source link

String highlighting as comment #26

Open yeyun1999 opened 1 year ago

yeyun1999 commented 1 year ago

Strings are highlighted as comments, especially when used as commands

rule hostname:
    output: 
        "out/{id}.txt"
    threads:
        1
    resources:
        tmpdir=".tmp"
    conda:
        'base'
    shell:
        '''
        sleep 2;echo `hostname` > {output}
        echo fdf >> {resources.tmpdir}/fdf

        '''

The strings in the shell, output, and conda parts are all recognized as comments and highlighted in green

skwde commented 1 year ago

Here is a screenshot of the problem:

Screenshot 2023-07-18 at 08 40 43