diff options
author | Mazunki Hoksaas <rolferen@gmail.com> | 2023-12-19 20:44:41 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2023-12-19 20:44:41 +0100 |
commit | 63210c214afa6589b6132bd060908a8711f4567f (patch) | |
tree | 5705973c5ca9f43d673f39aed6b4f3394575349f /runtime | |
parent | 615202bd0ebc1d8e3532f24b9b7232c2fd86b181 (diff) |
patch 9.0.2179: no filetype detection for execline scriptsv9.0.2179
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: #13689
Signed-Off-By: Mazunki Hoksaas <rolferen@gmail.com>
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/autoload/dist/script.vim | 4 | ||||
-rw-r--r-- | runtime/filetype.vim | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/runtime/autoload/dist/script.vim b/runtime/autoload/dist/script.vim index 1685093d54..f58899af31 100644 --- a/runtime/autoload/dist/script.vim +++ b/runtime/autoload/dist/script.vim @@ -225,6 +225,10 @@ export def Exe2filetype(name: string, line1: string): string elseif name =~ '^dart\>' return 'dart' + # Execline (s6) + elseif name =~ '^execlineb\>' + return 'execline' + endif return '' diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 4043eb428e..30f8a1e16d 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -497,6 +497,10 @@ if has("fname_case") au BufNewFile,BufRead *.EU,*.EW,*.EX,*.EXU,*.EXW call dist#ft#EuphoriaCheck() endif +" Execline (s6) scripts +au BufNewFile,BufRead *s6*/\(up\|down\|run\|finish\) setf execline +au BufNewFile,BufRead s6-* setf execline + " Lynx config files au BufNewFile,BufRead lynx.cfg setf lynx |