neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 815b65d77713c69bbcb5c80892f6dd49aac8edd9
parent 9005ffbe7757eca8ad809c81db76aec930db8e68
Author: Gregory Anders <8965202+gpanders@users.noreply.github.com>
Date:   Tue,  3 May 2022 15:03:42 -0600

fix(filetype): fixup scd filetype detection (#18403)


Diffstat:
Mruntime/lua/vim/filetype/detect.lua | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/runtime/lua/vim/filetype/detect.lua b/runtime/lua/vim/filetype/detect.lua @@ -335,7 +335,7 @@ function M.scd(bufnr) local first = "^%S+%(%d[0-9A-Za-z]*%)" local opt = [[%s+"[^"]*"]] local line = getlines(bufnr, 1) - if findany(line, { "$", first .. opt .. "$", first .. opt .. opt .. "$" }) then + if findany(line, { first .. "$", first .. opt .. "$", first .. opt .. opt .. "$" }) then vim.bo[bufnr].filetype = "scdoc" else vim.bo[bufnr].filetype = "supercollider"