mirror of
https://github.com/neovim/neovim.git
synced 2026-04-26 01:04:10 +00:00
vim-patch:9.0.2179: no filetype detection for execline scripts
Problem: no filetype detection for execline scripts
Solution: Add filetype detection for execline
as a prior to adding syntax support for execline (see
https://github.com/djpohly/vim-execline/issues/2), i went ahead and made
the filetype detection for execline scripts.
closes: vim/vim#13689
Signed-Off-By: Mazunki Hoksaas <rolferen@gmail.com>
63210c214a
Co-authored-by: Mazunki Hoksaas <rolferen@gmail.com>
This commit is contained in:
@@ -1656,6 +1656,11 @@ local pattern = {
|
||||
['.*/dtrace/.*%.d'] = 'dtrace',
|
||||
['.*esmtprc'] = 'esmtprc',
|
||||
['.*Eterm/.*%.cfg'] = 'eterm',
|
||||
['.*s6.*/up'] = 'execline',
|
||||
['.*s6.*/down'] = 'execline',
|
||||
['.*s6.*/run'] = 'execline',
|
||||
['.*s6.*/finish'] = 'execline',
|
||||
['s6%-.*'] = 'execline',
|
||||
['[a-zA-Z0-9].*Dict'] = detect.foam,
|
||||
['[a-zA-Z0-9].*Dict%..*'] = detect.foam,
|
||||
['[a-zA-Z].*Properties'] = detect.foam,
|
||||
|
||||
@@ -1661,6 +1661,7 @@ local patterns_hashbang = {
|
||||
['^\\%(rexx\\|regina\\)\\>'] = { 'rexx', { vim_regex = true } },
|
||||
['^janet\\>'] = { 'janet', { vim_regex = true } },
|
||||
['^dart\\>'] = { 'dart', { vim_regex = true } },
|
||||
['^execlineb\\>'] = { 'execline', { vim_regex = true } },
|
||||
}
|
||||
|
||||
---@private
|
||||
|
||||
Reference in New Issue
Block a user