Mercurial > vim
diff runtime/autoload/dist/ft.vim @ 27877:834d3fba1e7c v8.2.4464
patch 8.2.4464: Dtrace files are recognized as filetype D
Commit: https://github.com/vim/vim/commit/4d56b971cbae01cc454eb09713326224993e38ed
Author: =?UTF-8?q?Teubel=20Gy=C3=B6rgy?= <tgyurci@gmail.com>
Date: Thu Feb 24 17:59:09 2022 +0000
patch 8.2.4464: Dtrace files are recognized as filetype D
Problem: Dtrace files are recognized as filetype D.
Solution: Add a pattern for Dtrace files. (Teubel Gy?rgy, closes https://github.com/vim/vim/issues/9841)
Add some more testing.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 24 Feb 2022 19:00:04 +0100 |
parents | e63514ae0c29 |
children | d19b7aee1925 |
line wrap: on
line diff
--- a/runtime/autoload/dist/ft.vim +++ b/runtime/autoload/dist/ft.vim @@ -206,6 +206,10 @@ export def EuphoriaCheck() enddef export def DtraceCheck() + if did_filetype() + # Filetype was already detected + return + endif var lines = getline(1, min([line("$"), 100])) if match(lines, '^module\>\|^import\>') > -1 # D files often start with a module and/or import statement.