aboutsummaryrefslogtreecommitdiff
path: root/runtime/filetype.vim
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2022-01-11 21:02:58 +0100
committerGitHub <noreply@github.com>2022-01-11 21:02:58 +0100
commit70fe3ce004f1c17328257349da5528757fdcd354 (patch)
tree06c62d6fe6629d527d34c84541d9ff89be0bdaad /runtime/filetype.vim
parent074b033e7e10baf3f4401a1652c1de197f5b5c4e (diff)
downloadrneovim-70fe3ce004f1c17328257349da5528757fdcd354.tar.gz
rneovim-70fe3ce004f1c17328257349da5528757fdcd354.tar.bz2
rneovim-70fe3ce004f1c17328257349da5528757fdcd354.zip
vim-patch:8.2.4064: foam files are not detected (#17041)
* vim-patch:8.2.4064: foam files are not detected Problem: Foam files are not detected. Solution: Detect the foam filetype by the path and file contents. (Mohammed Elwardi Fadeli, closes vim/vim#9501) https://github.com/vim/vim/commit/2284f6cca384e0ccc352bfec7277dc26386cac3d * Port foam ft detection to filetype.lua Co-authored-by: Gregory Anders <greg@gpanders.com>
Diffstat (limited to 'runtime/filetype.vim')
-rw-r--r--runtime/filetype.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 15b0ff722e..aa12a5f8dd 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1210,6 +1210,9 @@ au BufNewFile,BufRead *.xom,*.xin setf omnimark
" OPAM
au BufNewFile,BufRead opam,*.opam,*.opam.template setf opam
+" OpenFOAM
+au BufNewFile,BufRead [a-zA-Z0-9]*Dict\(.*\)\=,[a-zA-Z]*Properties\(.*\)\=,*Transport\(.*\),fvSchemes,fvSolution,fvConstrains,fvModels,*/constant/g,*/0\(\.orig\)\=/* call dist#ft#FTfoam()
+
" OpenROAD
au BufNewFile,BufRead *.or setf openroad