aboutsummaryrefslogtreecommitdiff
path: root/runtime/autoload
diff options
context:
space:
mode:
authorGregory Anders <8965202+gpanders@users.noreply.github.com>2022-07-17 06:33:51 -0600
committerGitHub <noreply@github.com>2022-07-17 14:33:51 +0200
commit5ccdf6a88d5790382ad3da6bb908c606765754e0 (patch)
tree739ebd8e7d55a9fbc9792a62fd96166be38f5878 /runtime/autoload
parenteb9b93b5e025386ec9431c9d35a4a073d6946d1d (diff)
downloadrneovim-5ccdf6a88d5790382ad3da6bb908c606765754e0.tar.gz
rneovim-5ccdf6a88d5790382ad3da6bb908c606765754e0.tar.bz2
rneovim-5ccdf6a88d5790382ad3da6bb908c606765754e0.zip
vim-patch:9.0.0055 (#19392)
vim-patch:9.0.0055: bitbake files are not detected Problem: Bitbake files are not detected. Solution: Add bitbake filetype detection by file name and contents. (Gregory Anders, closes vim/vim#10697) https://github.com/vim/vim/commit/fa49eb482729a5fe7da9c9a5ed8d14f68afa55c7
Diffstat (limited to 'runtime/autoload')
-rw-r--r--runtime/autoload/dist/ft.vim6
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim
index a3a67cacb9..9e30ae1f51 100644
--- a/runtime/autoload/dist/ft.vim
+++ b/runtime/autoload/dist/ft.vim
@@ -519,12 +519,14 @@ func dist#ft#FTinc()
" headers so assume POV-Ray
elseif lines =~ '^\s*\%({\|(\*\)' || lines =~? s:ft_pascal_keywords
setf pascal
+ elseif lines =~# '\<\%(require\|inherit\)\>' || lines =~# '\w\+ = '
+ setf bitbake
else
call dist#ft#FTasmsyntax()
if exists("b:asmsyntax")
- exe "setf " . fnameescape(b:asmsyntax)
+ exe "setf " . fnameescape(b:asmsyntax)
else
- setf pov
+ setf pov
endif
endif
endif