mirror of
https://github.com/neovim/neovim.git
synced 2024-12-25 21:55:17 -07:00
vim-patch:8.2.4767: openscad files are not recognized
Problem: Openscad files are not recognized.
Solution: Add a filetype pattern. (Niklas Adam, closes vim/vim#10199)
c360b2566c
This commit is contained in:
parent
dcf7bc4140
commit
b49c1adb20
@ -1271,6 +1271,9 @@ au BufNewFile,BufRead *.or setf openroad
|
|||||||
" OPL
|
" OPL
|
||||||
au BufNewFile,BufRead *.[Oo][Pp][Ll] setf opl
|
au BufNewFile,BufRead *.[Oo][Pp][Ll] setf opl
|
||||||
|
|
||||||
|
" OpenSCAD
|
||||||
|
au BufNewFile,BufRead *.scad setf openscad
|
||||||
|
|
||||||
" Oracle config file
|
" Oracle config file
|
||||||
au BufNewFile,BufRead *.ora setf ora
|
au BufNewFile,BufRead *.ora setf ora
|
||||||
|
|
||||||
|
@ -436,6 +436,7 @@ local extension = {
|
|||||||
xin = "omnimark",
|
xin = "omnimark",
|
||||||
opam = "opam",
|
opam = "opam",
|
||||||
["or"] = "openroad",
|
["or"] = "openroad",
|
||||||
|
scad = "openscad",
|
||||||
ora = "ora",
|
ora = "ora",
|
||||||
org = "org",
|
org = "org",
|
||||||
org_archive = "org",
|
org_archive = "org",
|
||||||
|
@ -383,6 +383,7 @@ let s:filename_checks = {
|
|||||||
\ 'omnimark': ['file.xom', 'file.xin'],
|
\ 'omnimark': ['file.xom', 'file.xin'],
|
||||||
\ 'opam': ['opam', 'file.opam', 'file.opam.template'],
|
\ 'opam': ['opam', 'file.opam', 'file.opam.template'],
|
||||||
\ 'openroad': ['file.or'],
|
\ 'openroad': ['file.or'],
|
||||||
|
\ 'openscad': ['file.scad'],
|
||||||
\ 'ora': ['file.ora'],
|
\ 'ora': ['file.ora'],
|
||||||
\ 'org': ['file.org', 'file.org_archive'],
|
\ 'org': ['file.org', 'file.org_archive'],
|
||||||
\ 'pamconf': ['/etc/pam.conf', '/etc/pam.d/file', 'any/etc/pam.conf', 'any/etc/pam.d/file'],
|
\ 'pamconf': ['/etc/pam.conf', '/etc/pam.d/file', 'any/etc/pam.conf', 'any/etc/pam.d/file'],
|
||||||
|
Loading…
Reference in New Issue
Block a user