diff options
author | Christian Clason <c.clason@uni-graz.at> | 2022-02-26 14:01:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-26 14:01:37 +0100 |
commit | d0f8f76224f501d919ba6c8a5cd717de76903b34 (patch) | |
tree | 144c16d0394615c66fcf3d0e02316ad2481b4030 /runtime/autoload | |
parent | 2703cf95ddb9d4f3b9b5e4d4c6f99a3e2c8c2838 (diff) | |
download | rneovim-d0f8f76224f501d919ba6c8a5cd717de76903b34.tar.gz rneovim-d0f8f76224f501d919ba6c8a5cd717de76903b34.tar.bz2 rneovim-d0f8f76224f501d919ba6c8a5cd717de76903b34.zip |
vim-patch:8.2.4464: Dtrace files are recognized as filetype D (#17518)
Problem: Dtrace files are recognized as filetype D.
Solution: Add a pattern for Dtrace files. (Teubel György, closes vim/vim#9841)
Add some more testing.
https://github.com/vim/vim/commit/4d56b971cbae01cc454eb09713326224993e38ed
Diffstat (limited to 'runtime/autoload')
-rw-r--r-- | runtime/autoload/dist/ft.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim index aacecc521e..bcb1431b5f 100644 --- a/runtime/autoload/dist/ft.vim +++ b/runtime/autoload/dist/ft.vim @@ -211,6 +211,10 @@ func dist#ft#EuphoriaCheck() endfunc func dist#ft#DtraceCheck() + if did_filetype() + " Filetype was already detected + return + endif let lines = getline(1, min([line("$"), 100])) if match(lines, '^module\>\|^import\>') > -1 " D files often start with a module and/or import statement. |