diff options
author | Christian Clason <c.clason@uni-graz.at> | 2022-09-24 10:16:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-24 10:16:30 +0200 |
commit | 24b5449b3d9b39a436bb8fe935116afa15a9473e (patch) | |
tree | 9368a2f74d08125cb4f88d6d32c166ba79037842 | |
parent | 14610332b2e851f9464a2d32a0ef3869dcff9834 (diff) | |
download | rneovim-24b5449b3d9b39a436bb8fe935116afa15a9473e.tar.gz rneovim-24b5449b3d9b39a436bb8fe935116afa15a9473e.tar.bz2 rneovim-24b5449b3d9b39a436bb8fe935116afa15a9473e.zip |
vim-patch:9.0.0562: HSL playlist files are not recognized (#20307)
Problem: HSL playlist files are not recognized.
Solution: Add a pattern to recognize HSL palylist files. (BenoƮt Ryder,
closes vim/vim#11204)
https://github.com/vim/vim/commit/35fdd9a67d73d4750152c419d4193ebb6b6d6eee
-rw-r--r-- | runtime/filetype.vim | 3 | ||||
-rw-r--r-- | runtime/lua/vim/filetype.lua | 1 | ||||
-rw-r--r-- | src/nvim/testdir/test_filetype.vim | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 4de1720c75..e2efaaa0ce 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -845,6 +845,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/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index 5f58da7a34..c96ead323b 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -473,6 +473,7 @@ local extension = { hex = 'hex', ['h32'] = 'hex', hjson = 'hjson', + m3u8 = 'hlsplaylist', hog = 'hog', hws = 'hollywood', hoon = 'hoon', diff --git a/src/nvim/testdir/test_filetype.vim b/src/nvim/testdir/test_filetype.vim index e3e698aa60..2d71d9b1a6 100644 --- a/src/nvim/testdir/test_filetype.vim +++ b/src/nvim/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'], |