晋太元中,武陵人捕鱼为业。缘溪行,忘路之远近。忽逢桃花林,夹岸数百步,中无杂树,芳草鲜美,落英缤纷。渔人甚异之,复前行,欲穷其林。 林尽水源,便得一山,山有小口,仿佛若有光。便舍船,从口入。初极狭,才通人。复行数十步,豁然开朗。土地平旷,屋舍俨然,有良田、美池、桑竹之属。阡陌交通,鸡犬相闻。其中往来种作,男女衣着,悉如外人。黄发垂髫,并怡然自乐。 见渔人,乃大惊,问所从来。具答之。便要还家,设酒杀鸡作食。村中闻有此人,咸来问讯。自云先世避秦时乱,率妻子邑人来此绝境,不复出焉,遂与外人间隔。问今是何世,乃不知有汉,无论魏晋。此人一一为具言所闻,皆叹惋。余人各复延至其家,皆出酒食。停数日,辞去。此中人语云:“不足为外人道也。”(间隔 一作:隔绝) 既出,得其船,便扶向路,处处志之。及郡下,诣太守,说如此。太守即遣人随其往,寻向所志,遂迷,不复得路。 南阳刘子骥,高尚士也,闻之,欣然规往。未果,寻病终。后遂无问津者。
| DIR:/proc/thread-self/root/usr/share/vim/vim80/syntax/ |
| Current File : //proc/thread-self/root/usr/share/vim/vim80/syntax/specman.vim |
" Vim syntax file
" Language: SPECMAN E-LANGUAGE
" Maintainer: Or Freund <or@mobilian.com ;omf@gmx.co.uk; OrMeir@yahoo.com>
" Last Update: Wed Oct 24 2001
"---------------------------------------------------------
"| If anyone found an error or fix the parenthesis part |
"| I will be happy to hear about it |
"| Thanks Or. |
"---------------------------------------------------------
" Remove any old syntax stuff hanging around
" quit when a syntax file was already loaded
if exists("b:current_syntax")
finish
endif
syn keyword specmanTodo contained TODO todo ToDo FIXME XXX
syn keyword specmanStatement var instance on compute start event expect check that routine
syn keyword specmanStatement specman is also first only with like
syn keyword specmanStatement list of all radix hex dec bin ignore illegal
syn keyword specmanStatement traceable untraceable
syn keyword specmanStatement cover using count_only trace_only at_least transition item ranges
syn keyword specmanStatement cross text call task within
syn keyword specmanMethod initialize non_terminal testgroup delayed exit finish
syn keyword specmanMethod out append print outf appendf
syn keyword specmanMethod post_generate pre_generate setup_test finalize_test extract_test
syn keyword specmanMethod init run copy as_a set_config dut_error add clear lock quit
syn keyword specmanMethod lock unlock release swap quit to_string value stop_run
syn keyword specmanMethod crc_8 crc_32 crc_32_flip get_config add0 all_indices and_all
syn keyword specmanMethod apply average count delete exists first_index get_indices
syn keyword specmanMethod has insert is_a_permutation is_empty key key_exists key_index
syn keyword specmanMethod last last_index max max_index max_value min min_index
syn keyword specmanMethod min_value or_all pop pop0 push push0 product resize reverse
syn keyword specmanMethod sort split sum top top0 unique clear is_all_iterations
syn keyword specmanMethod get_enclosing_unit hdl_path exec deep_compare deep_compare_physical
syn keyword specmanMethod pack unpack warning error fatal
syn match specmanMethod "size()"
syn keyword specmanPacking packing low high
syn keyword specmanType locker address
syn keyword specmanType body code vec chars
syn keyword specmanType integer real bool int long uint byte bits bit time string
syn keyword specmanType byte_array external_pointer
syn keyword specmanBoolean TRUE FALSE
syn keyword specmanPreCondit #ifdef #ifndef #else
syn keyword specmanConditional choose matches
syn keyword specmanConditional if then else when try
syn keyword specmanLabel case casex casez default
syn keyword specmanLogical and or not xor
syn keyword specmanRepeat until repeat while for from to step each do break continue
syn keyword specmanRepeat before next sequence always -kind network
syn keyword specmanRepeat index it me in new return result select
syn keyword specmanTemporal cycle sample events forever
syn keyword specmanTemporal wait change negedge rise fall delay sync sim true detach eventually emit
syn keyword specmanConstant MAX_INT MIN_INT NULL UNDEF
syn keyword specmanDefine define as computed type extend
syn keyword specmanDefine verilog vhdl variable global sys
syn keyword specmanStructure struct unit
syn keyword specmanInclude import
syn keyword specmanConstraint gen keep keeping soft before
syn keyword specmanSpecial untyped symtab ECHO DOECHO
syn keyword specmanFile files load module ntv source_ref script read write
syn keyword specmanFSM initial idle others posedge clock cycles
syn match specmanOperator "[&|~><!)(*%@+/=?:;}{,.\^\-\[\]]"
syn match specmanOperator "+="
syn match specmanOperator "-="
syn match specmanOperator "*="
syn match specmanComment "//.*" contains=specmanTodo
syn match specmanComment "--.*"
syn region specmanComment start="^'>"hs=s+2 end="^<'"he=e-2
syn match specmanHDL "'[`.a-zA-Z0-9_@\[\]]\+\>'"
syn match specmanCompare "=="
syn match specmanCompare "!==="
syn match specmanCompare "==="
syn match specmanCompare "!="
syn match specmanCompare ">="
syn match specmanCompare "<="
syn match specmanNumber "[0-9]:[0-9]"
syn match specmanNumber "\(\<\d\+\|\)'[bB]\s*[0-1_xXzZ?]\+\>"
syn match specmanNumber "0[bB]\s*[0-1_xXzZ?]\+\>"
syn match specmanNumber "\(\<\d\+\|\)'[oO]\s*[0-7_xXzZ?]\+\>"
syn match specmanNumber "0[oO]\s*[0-9a-fA-F_xXzZ?]\+\>"
syn match specmanNumber "\(\<\d\+\|\)'[dD]\s*[0-9_xXzZ?]\+\>"
syn match specmanNumber "\(\<\d\+\|\)'[hH]\s*[0-9a-fA-F_xXzZ?]\+\>"
syn match specmanNumber "0[xX]\s*[0-9a-fA-F_xXzZ?]\+\>"
syn match specmanNumber "\<[+-]\=[0-9_]\+\(\.[0-9_]*\|\)\(e[0-9_]*\|\)\>"
syn region specmanString start=+"+ end=+"+
"**********************************************************************
" I took this section from c.vim but I didnt succeded to make it work
" ANY one who dare jumping to this deep watter is more than welocome!
"**********************************************************************
""catch errors caused by wrong parenthesis and brackets
"syn cluster specmanParenGroup contains=specmanParenError
"" ,specmanNumbera,specmanComment
"if exists("specman_no_bracket_error")
"syn region specmanParen transparent start='(' end=')' contains=ALLBUT,@specmanParenGroup
"syn match specmanParenError ")"
"syn match specmanErrInParen contained "[{}]"
"else
"syn region specmanParen transparent start='(' end=')' contains=ALLBUT,@specmanParenGroup,specmanErrInBracket
"syn match specmanParenError "[\])]"
"syn match specmanErrInParen contained "[\]{}]"
"syn region specmanBracket transparent start='\[' end=']' contains=ALLBUT,@specmanParenGroup,specmanErrInParen
"syn match specmanErrInBracket contained "[);{}]"
"endif
"
"Modify the following as needed. The trade-off is performance versus
"functionality.
syn sync lines=50
" Define the default highlighting.
" Only when an item doesn't have highlighting yet
" The default methods for highlighting. Can be overridden later
hi def link specmanConditional Conditional
hi def link specmanConstraint Conditional
hi def link specmanRepeat Repeat
hi def link specmanString String
hi def link specmanComment Comment
hi def link specmanConstant Macro
hi def link specmanNumber Number
hi def link specmanCompare Operator
hi def link specmanOperator Operator
hi def link specmanLogical Operator
hi def link specmanStatement Statement
hi def link specmanHDL SpecialChar
hi def link specmanMethod Function
hi def link specmanInclude Include
hi def link specmanStructure Structure
hi def link specmanBoolean Boolean
hi def link specmanFSM Label
hi def link specmanSpecial Special
hi def link specmanType Type
hi def link specmanTemporal Type
hi def link specmanFile Include
hi def link specmanPreCondit Include
hi def link specmanDefine Typedef
hi def link specmanLabel Label
hi def link specmanPacking keyword
hi def link specmanTodo Todo
hi def link specmanParenError Error
hi def link specmanErrInParen Error
hi def link specmanErrInBracket Error
let b:current_syntax = "specman"
|