]> granicus.if.org Git - vim/commitdiff
patch 9.0.1263: KDL files are not recognized v9.0.1263
authorAmaan Qureshi <amaanq12@gmail.com>
Mon, 30 Jan 2023 15:19:57 +0000 (15:19 +0000)
committerBram Moolenaar <Bram@vim.org>
Mon, 30 Jan 2023 15:19:57 +0000 (15:19 +0000)
Problem:    KDL files are not recognized.
Solution:   Add a pattern for KDL files. (Amaan Qureshi, closes #11898)

runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index 8654362af8e08b09f23358d111a84248685bfe81..200153e75e7e645702e2baeeea84c01022c8d8d6 100644 (file)
@@ -1032,6 +1032,9 @@ au BufNewFile,BufRead *.jsonnet,*.libsonnet       setf jsonnet
 " Julia
 au BufNewFile,BufRead *.jl                     setf julia
 
+" KDL
+au BufNewFile,BufRead *.kdl                    setf kdl
+
 " Kixtart
 au BufNewFile,BufRead *.kix                    setf kix
 
index a6d87aef2045af83f9b24069aa9f8e3595b99976..790d98c550349b768ca6b3de18767680d3b15b8e 100644 (file)
@@ -300,6 +300,7 @@ let s:filename_checks = {
     \ 'jsp': ['file.jsp'],
     \ 'julia': ['file.jl'],
     \ 'kconfig': ['Kconfig', 'Kconfig.debug', 'Kconfig.file'],
+    \ 'kdl': ['file.kdl'],
     \ 'kivy': ['file.kv'],
     \ 'kix': ['file.kix'],
     \ 'kotlin': ['file.kt', 'file.ktm', 'file.kts'],
index bb15492083f9ca7b48f327df2c6da4e11e3813ae..7e93b11da7285bce80d26f70abf04d6f5a5e2fe1 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1263,
 /**/
     1262,
 /**/