dotfiles-pub/common/nano/syntax/m3u.nanorc

40 lines
978 B
Text

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 "^[^#].*"
# rainbow indent
color ,brightblack "^[[:space:]]{32}"
color ,black "^[[:space:]]{30}"
color ,brightblack "^[[:space:]]{28}"
color ,black "^[[:space:]]{26}"
color ,brightblack "^[[:space:]]{24}"
color ,black "^[[:space:]]{22}"
color ,brightblack "^[[:space:]]{20}"
color ,black "^[[:space:]]{18}"
color ,brightblack "^[[:space:]]{16}"
color ,black "^[[:space:]]{14}"
color ,brightblack "^[[:space:]]{12}"
color ,black "^[[:space:]]{10}"
color ,brightblack "^[[:space:]]{8}"
color ,black "^[[:space:]]{6}"
color ,brightblack "^[[:space:]]{4}"
color ,black "^[[:space:]]{2}"