diff options
author | Bastian Venthur <bastian.venthur@flixbus.com> | 2021-08-17 23:44:54 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-08-17 23:44:54 +0200 |
commit | dea561111a5761bf99397a246b8baa43e73288de (patch) | |
tree | d0f4e2893ad63f84a4a84de7a7b46987c2dbd494 /runtime | |
parent | 02f8694a6bd116ab3316add4a7ea6735bf2e8839 (diff) |
patch 8.2.3358: structurizr files are not recognizedv8.2.3358
Problem: Structurizr files are not recognized.
Solution: Recognize the file by contents. (Bastian Venthur, closes #8764)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/filetype.vim | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 648a19d9e0..ad18b7655e 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -537,8 +537,13 @@ au BufNewFile,BufRead *.drac,*.drc,*lvs,*lpe setf dracula " Datascript au BufNewFile,BufRead *.ds setf datascript -" dsl -au BufNewFile,BufRead *.dsl setf dsl +" dsl: DSSSL or Structurizr +au BufNewFile,BufRead *.dsl + \ if getline(1) =~ '^\s*<\!' | + \ setf dsl | + \ else | + \ setf structurizr | + \ endif " DTD (Document Type Definition for XML) au BufNewFile,BufRead *.dtd setf dtd |