晋太元中,武陵人捕鱼为业。缘溪行,忘路之远近。忽逢桃花林,夹岸数百步,中无杂树,芳草鲜美,落英缤纷。渔人甚异之,复前行,欲穷其林。 林尽水源,便得一山,山有小口,仿佛若有光。便舍船,从口入。初极狭,才通人。复行数十步,豁然开朗。土地平旷,屋舍俨然,有良田、美池、桑竹之属。阡陌交通,鸡犬相闻。其中往来种作,男女衣着,悉如外人。黄发垂髫,并怡然自乐。 见渔人,乃大惊,问所从来。具答之。便要还家,设酒杀鸡作食。村中闻有此人,咸来问讯。自云先世避秦时乱,率妻子邑人来此绝境,不复出焉,遂与外人间隔。问今是何世,乃不知有汉,无论魏晋。此人一一为具言所闻,皆叹惋。余人各复延至其家,皆出酒食。停数日,辞去。此中人语云:“不足为外人道也。”(间隔 一作:隔绝) 既出,得其船,便扶向路,处处志之。及郡下,诣太守,说如此。太守即遣人随其往,寻向所志,遂迷,不复得路。 南阳刘子骥,高尚士也,闻之,欣然规往。未果,寻病终。后遂无问津者。
| DIR:/proc/thread-self/root/proc/thread-self/root/usr/share/vim/vim80/syntax/ |
| Current File : //proc/thread-self/root/proc/thread-self/root/usr/share/vim/vim80/syntax/ptcap.vim |
" Vim syntax file
" Language: printcap/termcap database
" Maintainer: Haakon Riiser <hakonrk@fys.uio.no>
" URL: http://folk.uio.no/hakonrk/vim/syntax/ptcap.vim
" Last Change: 2001 May 15
" quit when a syntax file was already loaded
if exists("b:current_syntax")
finish
endif
" Since I only highlight based on the structure of the databases, not
" specific keywords, case sensitivity isn't required
syn case ignore
" Since everything that is not caught by the syntax patterns is assumed
" to be an error, we start parsing 20 lines up, unless something else
" is specified
if exists("ptcap_minlines")
exe "syn sync lines=".ptcap_minlines
else
syn sync lines=20
endif
" Highlight everything that isn't caught by the rules as errors,
" except blank lines
syn match ptcapError "^.*\S.*$"
syn match ptcapLeadBlank "^\s\+" contained
" `:' and `|' are delimiters for fields and names, and should not be
" highlighted. Hence, they are linked to `NONE'
syn match ptcapDelimiter "[:|]" contained
" Escaped characters receive special highlighting
syn match ptcapEscapedChar "\\." contained
syn match ptcapEscapedChar "\^." contained
syn match ptcapEscapedChar "\\\o\{3}" contained
" A backslash at the end of a line will suppress the newline
syn match ptcapLineCont "\\$" contained
" A number follows the same rules as an integer in C
syn match ptcapNumber "#\(+\|-\)\=\d\+"lc=1 contained
syn match ptcapNumberError "#\d*[^[:digit:]:\\]"lc=1 contained
syn match ptcapNumber "#0x\x\{1,8}"lc=1 contained
syn match ptcapNumberError "#0x\X"me=e-1,lc=1 contained
syn match ptcapNumberError "#0x\x\{9}"lc=1 contained
syn match ptcapNumberError "#0x\x*[^[:xdigit:]:\\]"lc=1 contained
" The `@' operator clears a flag (i.e., sets it to zero)
" The `#' operator assigns a following number to the flag
" The `=' operator assigns a string to the preceding flag
syn match ptcapOperator "[@#=]" contained
" Some terminal capabilites have special names like `#5' and `@1', and we
" need special rules to match these properly
syn match ptcapSpecialCap "\W[#@]\d" contains=ptcapDelimiter contained
" If editing a termcap file, an entry in the database is terminated by
" a (non-escaped) newline. Otherwise, it is terminated by a line which
" does not start with a colon (:)
if exists("b:ptcap_type") && b:ptcap_type[0] == 't'
syn region ptcapEntry start="^\s*[^[:space:]:]" end="[^\\]\(\\\\\)*$" end="^$" contains=ptcapNames,ptcapField,ptcapLeadBlank keepend
else
syn region ptcapEntry start="^\s*[^[:space:]:]"me=e-1 end="^\s*[^[:space:]:#]"me=e-1 contains=ptcapNames,ptcapField,ptcapLeadBlank,ptcapComment
endif
syn region ptcapNames start="^\s*[^[:space:]:]" skip="[^\\]\(\\\\\)*\\:" end=":"me=e-1 contains=ptcapDelimiter,ptcapEscapedChar,ptcapLineCont,ptcapLeadBlank,ptcapComment keepend contained
syn region ptcapField start=":" skip="[^\\]\(\\\\\)*\\$" end="[^\\]\(\\\\\)*:"me=e-1 end="$" contains=ptcapDelimiter,ptcapString,ptcapNumber,ptcapNumberError,ptcapOperator,ptcapLineCont,ptcapSpecialCap,ptcapLeadBlank,ptcapComment keepend contained
syn region ptcapString matchgroup=ptcapOperator start="=" skip="[^\\]\(\\\\\)*\\:" matchgroup=ptcapDelimiter end=":"me=e-1 matchgroup=NONE end="[^\\]\(\\\\\)*[^\\]$" end="^$" contains=ptcapEscapedChar,ptcapLineCont keepend contained
syn region ptcapComment start="^\s*#" end="$" contains=ptcapLeadBlank
hi def link ptcapComment Comment
hi def link ptcapDelimiter Delimiter
" The highlighting of "ptcapEntry" should always be overridden by
" its contents, so I use Todo highlighting to indicate that there
" is work to be done with the syntax file if you can see it :-)
hi def link ptcapEntry Todo
hi def link ptcapError Error
hi def link ptcapEscapedChar SpecialChar
hi def link ptcapField Type
hi def link ptcapLeadBlank NONE
hi def link ptcapLineCont Special
hi def link ptcapNames Label
hi def link ptcapNumber NONE
hi def link ptcapNumberError Error
hi def link ptcapOperator Operator
hi def link ptcapSpecialCap Type
hi def link ptcapString NONE
let b:current_syntax = "ptcap"
" vim: sts=4 sw=4 ts=8
|