mirror of
https://github.com/neovim/neovim.git
synced 2026-11-02 20:30:40 -06:00
vim-patch:9.1.0492: filetype: Vim-script files not detected by shebang line
Problem: Vim-script files may not be recognised Solution: Add shebang line detection (Doug Kearns) closes: vim/vim#15012 https://github.com/vim/vim/commit/0d4d23dac0a5a77ccb0ebf1dcf646afe0c6886bf Co-authored-by: Doug Kearns <dougkearns@gmail.com>
This commit is contained in:
1 parent
57c377dfb2
commit
191a70f9dd
2 files changed
+2
No files matched your search
@@ -1783,6 +1783,7 @@ local patterns_hashbang = {
|
||||
['^janet\\>'] = { 'janet', { vim_regex = true } },
|
||||
['^dart\\>'] = { 'dart', { vim_regex = true } },
|
||||
['^execlineb\\>'] = { 'execline', { vim_regex = true } },
|
||||
['^vim\\>'] = { 'vim', { vim_regex = true } },
|
||||
}
|
||||
|
||||
---@private
|
||||
|
||||
@@ -992,6 +992,7 @@ func s:GetScriptChecks() abort
|
||||
\ ['#!/path/regina']],
|
||||
\ 'janet': [['#!/path/janet']],
|
||||
\ 'dart': [['#!/path/dart']],
|
||||
\ 'vim': [['#!/path/vim']],
|
||||
\ }
|
||||
endfunc
|
||||
|
||||
|
||||
Reference in new issue
Block a user