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

63 lines
1.3 KiB
Text

## syntax for gophernicus gophermaps
syntax gophermap "\.(gophermap|gph)$"
# Port Numbers
color yellow "^.[ -~]*.[ -~]*.[ -~]*.[ -~]+"
# Domains
color red "^.[ -~]*.[ -~]*.[ -~]+"
# Resource Path (no directories)
color green "^[^1][ -~]*.[ -~]*"
# Directories (w/ Name)
color brightmagenta "^1[ -~]*.[ -~]*"
# Names
color brightblue "^[ -~]+."
# Directories (w/o Name)
color brightyellow "^1[ -~]+.$"
# URLs
color brightcyan "URL:.*"
# Types
# General
color magenta "^."
# HTML & Interactive Content
color brightcyan "^(h|7|8)"
# Info Text
color cyan "^i.*"
color cyan "^[ -~]*$"
color blue "^i"
# Special Tags & Characters
color brightgreen "^(!|-|:|~|%|=|\*|\.).*"
# Comments
color white,blue "#.*"
# 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}"