changeset 32039:f08ee1b65dbf v9.0.1351

patch 9.0.1351: Dhall files are not recognized Commit: https://github.com/vim/vim/commit/def5521752abefe12db8cc3111a3b205ad1ac929 Author: Amaan Qureshi <amaanq12@gmail.com> Date: Fri Feb 24 16:01:54 2023 +0000 patch 9.0.1351: Dhall files are not recognized Problem: Dhall files are not recognized. Solution: Add patterns for Dhall files. (Amaan Qureshi, closes https://github.com/vim/vim/issues/12052)
author Bram Moolenaar <Bram@vim.org>
date Fri, 24 Feb 2023 17:15:05 +0100
parents b6cb7f0da99f
children 4c2973999f32
files runtime/filetype.vim src/testdir/test_filetype.vim src/version.c
diffstat 3 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -522,6 +522,9 @@ au BufNewFile,BufRead */etc/apt/sources.
 " Deny hosts
 au BufNewFile,BufRead denyhosts.conf		setf denyhosts
 
+" Dhall
+au BufNewFile,BufRead *.dhall			setf dhall
+
 " dnsmasq(8) configuration files
 au BufNewFile,BufRead */etc/dnsmasq.conf	setf dnsmasq
 
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -155,6 +155,7 @@ let s:filename_checks = {
     \ 'denyhosts': ['denyhosts.conf'],
     \ 'desc': ['file.desc'],
     \ 'desktop': ['file.desktop', '.directory', 'file.directory'],
+    \ 'dhall': ['file.dhall'],
     \ 'dictconf': ['dict.conf', '.dictrc'],
     \ 'dictdconf': ['dictd.conf', 'dictdfile.conf', 'dictd-file.conf'],
     \ 'diff': ['file.diff', 'file.rej'],
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1351,
+/**/
     1350,
 /**/
     1349,