summaryrefslogtreecommitdiffstats
path: root/runtime/autoload/dist/ft.vim
diff options
context:
space:
mode:
author=?UTF-8?q?Teubel=20Gy=C3=B6rgy?= <tgyurci@gmail.com>2022-02-24 17:59:09 +0000
committerBram Moolenaar <Bram@vim.org>2022-02-24 17:59:09 +0000
commit4d56b971cbae01cc454eb09713326224993e38ed (patch)
treee8ad0386cf93d936903fe72b0e0443a7c79d9b5f /runtime/autoload/dist/ft.vim
parent38b85cb4d7216705058708bacbc25ab90cd61595 (diff)
patch 8.2.4464: Dtrace files are recognized as filetype Dv8.2.4464
Problem: Dtrace files are recognized as filetype D. Solution: Add a pattern for Dtrace files. (Teubel György, closes #9841) Add some more testing.
Diffstat (limited to 'runtime/autoload/dist/ft.vim')
-rw-r--r--runtime/autoload/dist/ft.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim
index 4f5b88a7f7..9f9fef0422 100644
--- 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.