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

Merge pull request #285 from hmlendea/master

M3U playlist syntax
This commit is contained in:
Anthony Scopatz 2020-02-24 21:11:34 -05:00 committed by GitHub
commit b39fe98f6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 brightred "^#EXT[-A-Z]*:"
color brightmagenta "^#EXTM3U"
# Separators
color normal "[,=]"
# URLs
color normal "^[^#].*"