ibab / vim-snakemake

Snakemake syntax highlighting copied from the official repository. I didn't write this!
MIT License
1 stars 17 forks source link

Robust filetype detection commands and added smart indentation #3

Closed burneyy closed 4 years ago

burneyy commented 4 years ago

Check with https://github.com/burneyy/vim-snakemake/pull/1 for detailed information on filetype detection changes

alerque commented 4 years ago

Hey @ibab, it would be great to see this merged to your repository as it's the one everybody has forked from. I ran across this while maintaining NERD Commenter and looking for the best place to point snakemake users to get the filetype set so commenting worked properly. I ended up linking to @burneyy's fork because it had more robust rules and this repository doesn't even set the ft properly. Hence my submission of some tweaks to his fork instead of directly to here.

Additionally there are 2 other forks which both fix the some problem with ft as well as tweak a few other things. As soon as this is merged I'd be happy to help with PR's that normalize the features other forks have in common and add merge the additional bits they have here as well, but it will be a lot simpler to do after this gets merged.

CC: @ccwang002, @DHI-GRAS, and @karel-brinda who have done work on this as well.