forked from aniani/vim
patch 8.2.0141: no swift filetype detection
Problem: No swift filetype detection. Solution: Add swift, swiftgyb and sil. (Emir Sarı, closes #5517)
This commit is contained in:
@@ -1627,6 +1627,13 @@ au BufNewFile,BufRead *.sml setf sml
|
|||||||
" Sratus VOS command macro
|
" Sratus VOS command macro
|
||||||
au BufNewFile,BufRead *.cm setf voscm
|
au BufNewFile,BufRead *.cm setf voscm
|
||||||
|
|
||||||
|
" Swift
|
||||||
|
au BufNewFile,BufRead *.swift setf swift
|
||||||
|
au BufNewFile,BufRead *.swift.gyb setf swiftgyb
|
||||||
|
|
||||||
|
" Swift Intermediate Language
|
||||||
|
au BufNewFile,BufRead *.sil setf sil
|
||||||
|
|
||||||
" Sysctl
|
" Sysctl
|
||||||
au BufNewFile,BufRead */etc/sysctl.conf,*/etc/sysctl.d/*.conf setf sysctl
|
au BufNewFile,BufRead */etc/sysctl.conf,*/etc/sysctl.d/*.conf setf sysctl
|
||||||
|
|
||||||
|
@@ -432,6 +432,9 @@ let s:filename_checks = {
|
|||||||
\ 'sudoers': ['any/etc/sudoers', 'sudoers.tmp'],
|
\ 'sudoers': ['any/etc/sudoers', 'sudoers.tmp'],
|
||||||
\ 'svg': ['file.svg'],
|
\ 'svg': ['file.svg'],
|
||||||
\ 'svn': ['svn-commitfile.tmp'],
|
\ 'svn': ['svn-commitfile.tmp'],
|
||||||
|
\ 'swift': ['file.swift'],
|
||||||
|
\ 'swiftgyb': ['file.swift.gyb'],
|
||||||
|
\ 'sil': ['file.sil'],
|
||||||
\ 'sysctl': ['/etc/sysctl.conf', '/etc/sysctl.d/file.conf'],
|
\ 'sysctl': ['/etc/sysctl.conf', '/etc/sysctl.d/file.conf'],
|
||||||
\ 'systemd': ['any/systemd/file.automount', 'any/systemd/file.mount', 'any/systemd/file.path', 'any/systemd/file.service', 'any/systemd/file.socket', 'any/systemd/file.swap', 'any/systemd/file.target', 'any/systemd/file.timer', '/etc/systemd/system/some.d/file.conf', '/etc/systemd/system/some.d/.#file'],
|
\ 'systemd': ['any/systemd/file.automount', 'any/systemd/file.mount', 'any/systemd/file.path', 'any/systemd/file.service', 'any/systemd/file.socket', 'any/systemd/file.swap', 'any/systemd/file.target', 'any/systemd/file.timer', '/etc/systemd/system/some.d/file.conf', '/etc/systemd/system/some.d/.#file'],
|
||||||
\ 'systemverilog': ['file.sv', 'file.svh'],
|
\ 'systemverilog': ['file.sv', 'file.svh'],
|
||||||
|
@@ -742,6 +742,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
141,
|
||||||
/**/
|
/**/
|
||||||
140,
|
140,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user