summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author=?UTF-8?q?Beno=C3=AEt=20Ryder?= <benoit@ryder.fr>2022-09-23 20:33:39 +0100
committerBram Moolenaar <Bram@vim.org>2022-09-23 20:33:39 +0100
commit35fdd9a67d73d4750152c419d4193ebb6b6d6eee (patch)
treeeb8cb6cb3f0cb7a251ef81884d4cd60c3641013e
parent3bcd0ddc2deb34794c735c6ea0b8f964b510c6db (diff)
downloadvim-git-35fdd9a67d73d4750152c419d4193ebb6b6d6eee.tar.gz
patch 9.0.0562: HSL playlist files are not recognizedv9.0.0562
Problem: HSL playlist files are not recognized. Solution: Add a pattern to recognize HSL palylist files. (BenoƮt Ryder, closes #11204)
-rw-r--r--runtime/filetype.vim3
-rw-r--r--src/testdir/test_filetype.vim1
-rw-r--r--src/version.c2
3 files changed, 6 insertions, 0 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 78d723c58..17697a129 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -844,6 +844,9 @@ au BufNewFile,BufRead *.hex,*.h32 setf hex
" Hjson
au BufNewFile,BufRead *.hjson setf hjson
+" HLS Playlist
+au BufNewFile,BufRead *.m3u8 setf hlsplaylist
+
" Hollywood
au BufRead,BufNewFile *.hws setf hollywood
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 03384b60c..e66fd0c30 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -255,6 +255,7 @@ let s:filename_checks = {
\ 'hex': ['file.hex', 'file.h32'],
\ 'hgcommit': ['hg-editor-file.txt'],
\ 'hjson': ['file.hjson'],
+ \ 'hlsplaylist': ['file.m3u8'],
\ 'hog': ['file.hog', 'snort.conf', 'vision.conf'],
\ 'hollywood': ['file.hws'],
\ 'hoon': ['file.hoon'],
diff --git a/src/version.c b/src/version.c
index 20ed2d764..665adc1ac 100644
--- 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 */
/**/
+ 562,
+/**/
561,
/**/
560,