1
0
mirror of https://github.com/scopatz/nanorc synced 2024-11-22 00:25:39 +01:00

M3U playlist syntax

This commit is contained in:
Mlendea, Horațiu 2020-02-09 11:50:20 +02:00
parent 195b8b21ec
commit cdb3a12cc7

22
m3u.nanorc Normal file
View File

@ -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 "^[^#].*"