]> granicus.if.org Git - vim/commitdiff
patch 8.2.4767: openscad files are not recognized v8.2.4767
authorsalkin-mada <adam@oddodd.org>
Sat, 16 Apr 2022 20:33:54 +0000 (21:33 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 16 Apr 2022 20:33:54 +0000 (21:33 +0100)
Problem:    Openscad files are not recognized.
Solution:   Add a filetype pattern. (Niklas Adam, closes #10199)

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

index 500f4692368d3312fe645a1857a1287d2615101e..7432c828012365a2e47583e2222226694e134620 100644 (file)
@@ -1275,6 +1275,9 @@ au BufNewFile,BufRead *.or                        setf openroad
 " OPL
 au BufNewFile,BufRead *.[Oo][Pp][Ll]           setf opl
 
+" OpenSCAD
+au BufNewFile,BufRead *.scad           setf openscad           
+
 " Oracle config file
 au BufNewFile,BufRead *.ora                    setf ora
 
index 1bc94b539f98b16696c27aa0f66c25c981ad5681..f832e4ef4754b8873dba6a4d243dd2340b93dbb7 100644 (file)
@@ -384,6 +384,7 @@ let s:filename_checks = {
     \ 'omnimark': ['file.xom', 'file.xin'],
     \ 'opam': ['opam', 'file.opam', 'file.opam.template'],
     \ 'openroad': ['file.or'],
+    \ 'openscad': ['file.scad'],
     \ 'ora': ['file.ora'],
     \ 'org': ['file.org', 'file.org_archive'],
     \ 'pamconf': ['/etc/pam.conf', '/etc/pam.d/file', 'any/etc/pam.conf', 'any/etc/pam.d/file'],
index c3aad487b3349c4ca0acc8ae7e3c4490e989e823..febf286e43f1138e8d5d98d9cba3b86e7cabcf5b 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4767,
 /**/
     4766,
 /**/