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

Merge pull request #305 from yzzyx-network/master

Add support for Gophermap and Gemini markdown files
This commit is contained in:
Anthony Scopatz 2020-04-24 13:29:05 -04:00 committed by GitHub
commit 815eb014c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 66 additions and 0 deletions

21
gemini.nanorc Normal file
View File

@ -0,0 +1,21 @@
## syntax highlighting for gemini:// markup language
syntax gemini "\.(gemini|gmi)$"
# Heading levels
color brightgreen "^#.*"
color brightcyan "^##.*"
color brightmagenta "^###.*"
# Link Text
color brightred "^=>\s*\S+\s+.*"
# Link URL
color green "^=>\s*\S+"
# Link Prefix
color yellow "^=>"
# Bullet Lists
color brightblue "^\*.*"
# Monospaced Blocks
color white,black start="^```" end="^```"

45
gophermap.nanorc Normal file
View File

@ -0,0 +1,45 @@
## 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 "#.*"