diff options
author | Christian Clason <c.clason@uni-graz.at> | 2022-04-17 10:15:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-17 10:15:55 +0200 |
commit | 6e6f5a783333d1bf9d6c719c896e72ac82e1ae54 (patch) | |
tree | f222e04ff0fb8b54079903361dd8b2fee06057aa | |
parent | 670ecfc0cd81d7ec213591c96d45922390d109b9 (diff) | |
download | rneovim-6e6f5a783333d1bf9d6c719c896e72ac82e1ae54.tar.gz rneovim-6e6f5a783333d1bf9d6c719c896e72ac82e1ae54.tar.bz2 rneovim-6e6f5a783333d1bf9d6c719c896e72ac82e1ae54.zip |
vim-patch:8.2.4767: openscad files are not recognized (#18138)
Problem: Openscad files are not recognized.
Solution: Add a filetype pattern. (Niklas Adam, closes vim/vim#10199)
https://github.com/vim/vim/commit/c360b2566ce2390d45d9436a6a85719fe2b387d5
-rw-r--r-- | runtime/filetype.vim | 3 | ||||
-rw-r--r-- | runtime/lua/vim/filetype.lua | 1 | ||||
-rw-r--r-- | src/nvim/testdir/test_filetype.vim | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index f7c0317eff..b6c183e712 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1271,6 +1271,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 diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index 603f9f854a..27a3366e0f 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -436,6 +436,7 @@ local extension = { xin = "omnimark", opam = "opam", ["or"] = "openroad", + scad = "openscad", ora = "ora", org = "org", org_archive = "org", diff --git a/src/nvim/testdir/test_filetype.vim b/src/nvim/testdir/test_filetype.vim index 2a26c58bb6..ca33d0da53 100644 --- a/src/nvim/testdir/test_filetype.vim +++ b/src/nvim/testdir/test_filetype.vim @@ -383,6 +383,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'], |