changeset 28485:75f181bef230 v8.2.4767

patch 8.2.4767: openscad files are not recognized Commit: https://github.com/vim/vim/commit/c360b2566ce2390d45d9436a6a85719fe2b387d5 Author: salkin-mada <adam@oddodd.org> Date: Sat Apr 16 21:33:54 2022 +0100 patch 8.2.4767: openscad files are not recognized Problem: Openscad files are not recognized. Solution: Add a filetype pattern. (Niklas Adam, closes https://github.com/vim/vim/issues/10199)
author Bram Moolenaar <Bram@vim.org>
date Sat, 16 Apr 2022 22:45:04 +0200
parents 5af8342103c4
children b704991bcc22
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
@@ -1275,6 +1275,9 @@ au BufNewFile,BufRead *.or			setf openro
 " 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
 
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -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'],
--- a/src/version.c
+++ b/src/version.c
@@ -747,6 +747,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    4767,
+/**/
     4766,
 /**/
     4765,