Artifact a1c76113b958e402dc7334c79c9e9a8e6d1bdfd05090d62d510a84c0fb1f4e15:
- File vim/ftdetect/swift.vim — part of check-in [00ec87204a] at 2020-02-27 20:57:57 on branch trunk — Partially import github.com/keith/swift.vim (user: js, size: 242) [annotate] [blame] [check-ins using]
autocmd BufNewFile,BufRead *.swift set filetype=swift autocmd BufRead * call s:Swift() function! s:Swift() if !empty(&filetype) return endif let line = getline(1) if line =~ "^#!.*swift" setfiletype swift endif endfunction