changeset 30322:2f79b10e82d1 v9.0.0497

patch 9.0.0497: LyRiCs files are not recognized Commit: https://github.com/vim/vim/commit/65ee49decf5677690cd695d5d288e39344965fff Author: ObserverOfTime <chronobserver@disroot.org> Date: Sun Sep 18 12:46:22 2022 +0100 patch 9.0.0497: LyRiCs files are not recognized Problem: LyRiCs files are not recognized. Solution: Add a pattern to detect LyRiCs files. (closes https://github.com/vim/vim/issues/11155)
author Bram Moolenaar <Bram@vim.org>
date Sun, 18 Sep 2022 14:00:03 +0200
parents 814f5509e4b1
children 7637e274f2a6
files runtime/filetype.vim src/testdir/test_filetype.vim src/version.c
diffstat 3 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -448,6 +448,9 @@ endif
 " Lynx config files
 au BufNewFile,BufRead lynx.cfg			setf lynx
 
+" LyRiCs
+au BufNewFile,BufRead *.lrc			setf lyrics
+
 " Modula-3 configuration language (must be before *.cfg and *makefile)
 au BufNewFile,BufRead *.quake,cm3.cfg		setf m3quake
 au BufNewFile,BufRead m3makefile,m3overrides	setf m3build
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -327,6 +327,7 @@ let s:filename_checks = {
     \ 'lss': ['file.lss'],
     \ 'lua': ['file.lua', 'file.rockspec', 'file.nse'],
     \ 'lynx': ['lynx.cfg'],
+    \ 'lyrics': ['file.lrc'],
     \ 'm3build': ['m3makefile', 'm3overrides'],
     \ 'm3quake': ['file.quake', 'cm3.cfg'],
     \ 'm4': ['file.at'],
--- a/src/version.c
+++ b/src/version.c
@@ -700,6 +700,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    497,
+/**/
     496,
 /**/
     495,