From cdb3a12cc78874d8cfcf9e5ea160286860a60eba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mlendea=2C=20Hora=C8=9Biu?= Date: Sun, 9 Feb 2020 11:50:20 +0200 Subject: [PATCH 1/2] M3U playlist syntax --- m3u.nanorc | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 m3u.nanorc diff --git a/m3u.nanorc b/m3u.nanorc new file mode 100644 index 0000000..a853ffa --- /dev/null +++ b/m3u.nanorc @@ -0,0 +1,22 @@ +syntax "m3u" "\.(m3u|m3u8)$" + +# Header text +color brightcyan "^#EXTINF.*,[^,]*$" + +# Header property values +color brightyellow "^#[^:]*:[^ ,]*" +color brightyellow "=[^ ,]*" +color brightyellow "=[\"][^\"]*[\"]" + +# Header property keys +color brightgreen "[a-zA-Z-]*=" + +# Headers +color brightmagenta start="#EXTM3U.*" end="$" +color brightred "^#EXT[-A-Z]*:" + +# Separators +color normal "[,=]" + +# URLs +color normal "^[^#].*" From 0f32f4755cc7183f4923d3d3e9e55ae9a748b002 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mlendea=2C=20Hora=C8=9Biu?= Date: Sun, 9 Feb 2020 11:57:37 +0200 Subject: [PATCH 2/2] Fixed main header highlighting --- m3u.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m3u.nanorc b/m3u.nanorc index a853ffa..3e237e3 100644 --- a/m3u.nanorc +++ b/m3u.nanorc @@ -12,8 +12,8 @@ color brightyellow "=[\"][^\"]*[\"]" color brightgreen "[a-zA-Z-]*=" # Headers -color brightmagenta start="#EXTM3U.*" end="$" color brightred "^#EXT[-A-Z]*:" +color brightmagenta "^#EXTM3U" # Separators color normal "[,=]"