]> granicus.if.org Git - vim/commitdiff
patch 9.0.1346: Starlark files are not recognized v9.0.1346
authorAmaan Qureshi <amaanq12@gmail.com>
Thu, 23 Feb 2023 15:38:49 +0000 (15:38 +0000)
committerBram Moolenaar <Bram@vim.org>
Thu, 23 Feb 2023 15:38:49 +0000 (15:38 +0000)
Problem:    Starlark files are not recognized.
Solution:   Add patterns for Starlark files. (Amaan Qureshi, closes #12049)

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

index a2bf03a6fdc58af99b9154b4f59b018ae36d933f..fcf6ff9a7bf4fc385cb19f48c9d7bb9db83f2813 100644 (file)
@@ -2025,6 +2025,9 @@ au BufNewFile,BufRead */etc/ssh/ssh_config.d/*.conf               setf sshconfig
 au BufNewFile,BufRead sshd_config                      setf sshdconfig
 au BufNewFile,BufRead */etc/ssh/sshd_config.d/*.conf   setf sshdconfig
 
+" Starlark
+au BufNewFile,BufRead *.ipd,*.star,*.starlark  setf starlark
+
 " OpenVPN configuration
 au BufNewFile,BufRead *.ovpn                   setf openvpn
 au BufNewFile,BufRead */openvpn/*/*.conf       setf openvpn
index ed5f43e708c398be71a7f144bf8a2da53aeb5b2d..3e34f554587522a25e6ec784753375575f9a72ad 100644 (file)
@@ -559,6 +559,7 @@ let s:filename_checks = {
     \ 'sshconfig': ['ssh_config', '/.ssh/config', '/etc/ssh/ssh_config.d/file.conf', 'any/etc/ssh/ssh_config.d/file.conf', 'any/.ssh/config', 'any/.ssh/file.conf'],
     \ 'sshdconfig': ['sshd_config', '/etc/ssh/sshd_config.d/file.conf', 'any/etc/ssh/sshd_config.d/file.conf'],
     \ 'st': ['file.st'],
+    \ 'starlark': ['file.ipd', 'file.star', 'file.starlark'],
     \ 'stata': ['file.ado', 'file.do', 'file.imata', 'file.mata'],
     \ 'stp': ['file.stp'],
     \ 'sudoers': ['any/etc/sudoers', 'sudoers.tmp', '/etc/sudoers', 'any/etc/sudoers.d/file'],
index 00ed6dbaafeb0967acd3c2842a659b587da4c124..fbc0b9232e91327e803130db1da8a67422c4ed47 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1346,
 /**/
     1345,
 /**/