mirror of
https://github.com/neovim/neovim.git
synced 2025-11-03 09:14:24 +00:00
vim-patch:9.0.0088: pattern for detecting bitbake files is not sufficient (#19547)
Problem: Pattern for detecting bitbake files is not sufficient.
Solution: Adjust the pattern. (Gregory Anders, closes vim/vim#10743)
30e212dac1
This commit is contained in:
@@ -554,7 +554,7 @@ function M.inc(bufnr)
|
||||
-- headers so assume POV-Ray
|
||||
elseif findany(lines, { '^%s{', '^%s%(%*' }) or matchregex(lines, pascal_keywords) then
|
||||
return 'pascal'
|
||||
elseif findany(lines, { '^%s*inherit ', '^%s*require ', '^%s*%w+%s+= ' }) then
|
||||
elseif findany(lines, { '^%s*inherit ', '^%s*require ', '^%s*%u[%w_:${}]*%s+%??[?:+]?= ' }) then
|
||||
return 'bitbake'
|
||||
else
|
||||
local syntax = M.asm_syntax(bufnr)
|
||||
|
||||
Reference in New Issue
Block a user