mirror of
https://github.com/jelera/vim-javascript-syntax.git
synced 2025-12-10 22:51:56 +08:00
shebang doesn't have to contain env
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
function! s:DetectJS()
|
function! s:DetectJS()
|
||||||
if getline(1) =~# '^#!.*/bin/env\s\+node\>'
|
if getline(1) =~# '^#!.*/bin/\(env\s\+\)\?node\>'
|
||||||
setfiletype javascript
|
setfiletype javascript
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user