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