aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/filetype.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-08-23 19:32:11 +0800
committerGitHub <noreply@github.com>2023-08-23 19:32:11 +0800
commit08fa71fd274530be23b6ae6b10222afee0b57522 (patch)
treec53c140547720c821d377020c9f4b007fcbbc7ee /runtime/lua/vim/filetype.lua
parent2234b84a1b85832667ad4a23fd5dee0bd1c92b72 (diff)
downloadrneovim-08fa71fd274530be23b6ae6b10222afee0b57522.tar.gz
rneovim-08fa71fd274530be23b6ae6b10222afee0b57522.tar.bz2
rneovim-08fa71fd274530be23b6ae6b10222afee0b57522.zip
vim-patch:9.0.1773: cannot distinguish Forth and Fortran *.f files (#24841)
Problem: cannot distinguish Forth and Fortran *.f files Solution: Add Filetype detection Code Also add *.4th as a Forth filetype closes: vim/vim#12251 https://github.com/vim/vim/commit/19a3bc3addf9b4aa8150a01b11b4249c67d15d3b Don't remove filetype files from Vim patches: - filetype.vim, script.vim, ft.vim usually contain useful changes - script.vim and ft.vim don't even have their paths spelled correctly Co-authored-by: Doug Kearns <dougkearns@gmail.com>
Diffstat (limited to 'runtime/lua/vim/filetype.lua')
-rw-r--r--runtime/lua/vim/filetype.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua
index ffb284cca7..c310eb3e42 100644
--- a/runtime/lua/vim/filetype.lua
+++ b/runtime/lua/vim/filetype.lua
@@ -398,6 +398,7 @@ local extension = {
EXW = detect.euphoria,
ex = detect.ex,
exp = 'expect',
+ f = detect.f,
factor = 'factor',
fal = 'falcon',
fan = 'fan',
@@ -410,8 +411,9 @@ local extension = {
fish = 'fish',
focexec = 'focexec',
fex = 'focexec',
- fth = 'forth',
ft = 'forth',
+ fth = 'forth',
+ ['4th'] = 'forth',
FOR = 'fortran',
f77 = 'fortran',
f03 = 'fortran',
@@ -427,7 +429,6 @@ local extension = {
F77 = 'fortran',
f95 = 'fortran',
FPP = 'fortran',
- f = 'fortran',
F = 'fortran',
F08 = 'fortran',
f08 = 'fortran',