preservim / nerdcommenter

Vim plugin for intensely nerdy commenting powers
Creative Commons Zero v1.0 Universal
4.99k stars 447 forks source link

Add support for Justfile #503

Closed brainwo closed 2 years ago

brainwo commented 2 years ago

Support for https://github.com/casey/just

brainwo commented 2 years ago

just uses # for shebang also (as shown here). For comments, they usually have a space. That is why I added a trailing space and I saw some entries in this file using trailing spaces.

I have updated this pull request and removing trailing spaces in other entries.

alerque commented 2 years ago

For comments, they usually have a space.

This misses the point. Many (perhaps even most) languages traditionally use spaces after comment delimiters. That's what this is for:

let g:NERDSpaceDelims = 1

Spaces are not a part of the justfile grammar: https://github.com/casey/just/blob/master/GRAMMAR.md#tokens