To: vim_dev@googlegroups.com Subject: Patch 9.0.1475 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 9.0.1475 Problem: Busted configuration files are not recognized. Solution: Recognize busted configuration files as Lua. (Craig MacEachern, closes #12209) Files: runtime/filetype.vim, src/testdir/test_filetype.vim *** ../vim-9.0.1474/runtime/filetype.vim 2023-04-18 20:53:17.730241973 +0100 --- runtime/filetype.vim 2023-04-22 12:37:45.603101145 +0100 *************** *** 273,278 **** --- 273,281 ---- autocmd BufRead,BufNewFile *.BUILD,BUILD setf bzl endif + " Busted (Lua unit testing framework - configuration files) + au BufNewFile,BufRead .busted setf lua + " C or lpc au BufNewFile,BufRead *.c call dist#ft#FTlpc() au BufNewFile,BufRead *.lpc,*.ulpc setf lpc *** ../vim-9.0.1474/src/testdir/test_filetype.vim 2023-04-18 20:53:17.730241973 +0100 --- src/testdir/test_filetype.vim 2023-04-22 12:37:45.603101145 +0100 *************** *** 345,351 **** \ 'lpc': ['file.lpc', 'file.ulpc'], \ 'lsl': ['file.lsl'], \ 'lss': ['file.lss'], ! \ 'lua': ['file.lua', 'file.rockspec', 'file.nse', '.luacheckrc'], \ 'lynx': ['lynx.cfg'], \ 'lyrics': ['file.lrc'], \ 'm3build': ['m3makefile', 'm3overrides'], --- 345,351 ---- \ 'lpc': ['file.lpc', 'file.ulpc'], \ 'lsl': ['file.lsl'], \ 'lss': ['file.lss'], ! \ 'lua': ['file.lua', 'file.rockspec', 'file.nse', '.luacheckrc', '.busted'], \ 'lynx': ['lynx.cfg'], \ 'lyrics': ['file.lrc'], \ 'm3build': ['m3makefile', 'm3overrides'], *** ../vim-9.0.1474/src/version.c 2023-04-21 19:51:17.455041775 +0100 --- src/version.c 2023-04-22 12:39:44.366984509 +0100 *************** *** 697,698 **** --- 697,700 ---- { /* Add new patch number below this line */ + /**/ + 1475, /**/ -- BEDEVERE: Stand by for attack!! [CUT TO enormous army forming up. Trebuchets, rows of PIKEMEN, siege towers, pennants flying, shouts of "Stand by for attack!" Traditional army build-up shots. The shouts echo across the ranks of the army. We see various groups reacting, and stirring themselves in readiness.] ARTHUR: Who are they? BEDEVERE: Oh, just some friends! "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///