github-linguist / linguist

Language Savant. If your repository's language is being reported incorrectly, send us a pull request!
MIT License
12.11k stars 4.2k forks source link

Add vimscript and vim script as names of vim's scripting language #7005

Closed jmdevin closed 2 weeks ago

jmdevin commented 3 weeks ago

2752 was opened a while ago; long ago enough that it seemingly was forgotten in #3278. I'm wondering if it would now be possible to add both vimscript and vim script as names for vim's language?

Alhadis commented 3 weeks ago

Where are you seeing the old name? VimL was renamed to Vim script in #3278.

jmdevin commented 3 weeks ago

Whoops, I only saw that using 'vimscript' in a fenced code blocks doesn't work; after I found the issue I clicked through and read the repo as it existed at the time.

Would it still be possible to add vimscript as an alias, so it works without the space?

Alhadis commented 3 weeks ago

Would it still be possible to add vimscript as an alias, so it works without the space?

It actually doesn't work with a space. 😁 Anything after the first token in a fenced code-block tag is ignored, so ```vim script is effectively the same as writing ```vim instead, which is what's actually enabling the highlighting.

NB: Any time a space is used in a language name, you can substitute it with a dash wherever a lowercased, "slugified" version of a language identifier is expected (fenced code-blocks, language keyword searches, etc):

" Fuck spaces
set noexpandtab
set tabstop=4 softtabstop=0 shiftwidth=4
jmdevin commented 2 weeks ago

I'm certainly learning more about this then I thought I would.

" Fuck spaces

Indeed.