pangloss / vim-javascript

Vastly improved Javascript indentation and syntax support in Vim.
http://www.vim.org/scripts/script.php?script_id=4452
3.79k stars 357 forks source link

Fix typescript detection bug #1218

Open parmort opened 4 years ago

parmort commented 4 years ago

I realized that when in a typescript file that includes a shebang line, the filetype is incorrectly detected as javascript. This check stops this incorrect detection.

My first thought was to add a configuration variable (hence the branch name), but I realized how limiting that is.

rschristian commented 1 year ago

Just ran into this myself tonight, was scratching my head for a while over potential syntax issues before the shebang dawned on me as potentially being problematic (then took me a while longer to figure out what was mistakenly detecting it).

Would be nice to get this in.