add gophermap stufF
This commit is contained in:
parent
357a8459b3
commit
0d4d5ce080
|
@ -0,0 +1 @@
|
|||
au BufNewFile,BufRead gophermap,*.gophermap set ft=gopher
|
|
@ -0,0 +1,38 @@
|
|||
set shiftwidth=4
|
||||
set tabstop=4
|
||||
set noexpandtab
|
||||
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
" Comments
|
||||
syn region gopherComment start="#" end="$"
|
||||
|
||||
|
||||
" Format of line:
|
||||
" Xname<TAB>selector<TAB>host<TAB>port
|
||||
|
||||
" File type
|
||||
syn match gopherType "^[0135678ghiIds;cM\*\.]"
|
||||
|
||||
" Name
|
||||
syn region gopherName start="^[0135678ghiIds;cM\*\.]"lc=1 end="$" oneline
|
||||
syn region gopherName start="^[0135678ghiIds;cM\*\.]"lc=1 end="\t"me=e-1 oneline
|
||||
|
||||
" Port
|
||||
syn match gopherPort "\t\d\+$"
|
||||
|
||||
" URL
|
||||
syn match gopherURL "\tURL:"
|
||||
syn region gopherLink start="\tURL:"lc=5 end="\t"me=e-1
|
||||
|
||||
|
||||
hi def link gopherComment comment
|
||||
hi def link gopherType statement
|
||||
hi def link gopherURL statement
|
||||
hi def link gopherLink underlined
|
||||
hi def link gopherName identifier
|
||||
hi def link gopherPort constant
|
|
@ -2,7 +2,7 @@
|
|||
# Edit at your own risk.
|
||||
# <hostname> <port> <incl. subdomains> <created> <max-age>
|
||||
pypi.python.org 0 1 1542503180 31536000
|
||||
raw.githubusercontent.com 0 0 1540096282 31536000
|
||||
raw.githubusercontent.com 0 0 1545609687 31536000
|
||||
codeload.github.com 0 0 1543303256 31536000
|
||||
pypi.org 0 1 1542503180 31536000
|
||||
files.pushshift.io 0 1 1540712484 31536000
|
||||
|
|
Loading…
Reference in New Issue