110 lines · 3.2 KB · Text
RawDownload
" Vim syntax file" Language:     Dot" Filenames:    *.dot" Maintainer:   Markus Mottl  <markus.mottl@gmail.com>" URL:          http://www.ocaml.info/vim/syntax/dot.vim" Last Change:  2006 Feb 05"               2001 May 04 - initial version " For version 5.x: Clear all syntax items" For version 6.x: Quit when a syntax file was already loadedif version < 600  syntax clearelseif exists("b:current_syntax")  finishendif " Errorssyn match    dotParErr     ")"syn match    dotBrackErr   "]"syn match    dotBraceErr   "}" " Enclosing delimiterssyn region   dotEncl transparent matchgroup=dotParEncl start="(" matchgroup=dotParEncl end=")" contains=ALLBUT,dotParErrsyn region   dotEncl transparent matchgroup=dotBrackEncl start="\[" matchgroup=dotBrackEncl end="\]" contains=ALLBUT,dotBrackErrsyn region   dotEncl transparent matchgroup=dotBraceEncl start="{" matchgroup=dotBraceEncl end="}" contains=ALLBUT,dotBraceErr " Commentssyn region   dotComment start="//" end="$" contains=dotComment,dotTodosyn region   dotComment start="/\*" end="\*/" contains=dotComment,dotTodosyn keyword  dotTodo contained TODO FIXME XXX " Stringssyn region   dotString    start=+"+ skip=+\\\\\|\\"+ end=+"+ " General keywordssyn keyword  dotKeyword  digraph node edge subgraph " Graph attributessyn keyword  dotType center layers margin mclimit name nodesep nslimitsyn keyword  dotType ordering page pagedir rank rankdir ranksep ratiosyn keyword  dotType rotate size " Node attributessyn keyword  dotType distortion fillcolor fontcolor fontname fontsizesyn keyword  dotType height layer orientation peripheries regularsyn keyword  dotType shape shapefile sides skew width " Edge attributessyn keyword  dotType arrowhead arrowsize arrowtail constraint decoratePsyn keyword  dotType dir headclip headlabel labelangle labeldistancesyn keyword  dotType labelfontcolor labelfontname labelfontsizesyn keyword  dotType minlen port_label_distance samehead sametailsyn keyword  dotType tailclip taillabel weight " Shared attributes (graphs, nodes, edges)syn keyword  dotType color " Shared attributes (graphs and edges)syn keyword  dotType bgcolor label URL " Shared attributes (nodes and edges)syn keyword  dotType fontcolor fontname fontsize layer style " Special charssyn match    dotKeyChar  "="syn match    dotKeyChar  ";"syn match    dotKeyChar  "->" " Identifiersyn match    dotIdentifier /\<\w\+\>/ " Synchronizationsyn sync minlines=50syn sync maxlines=500 " Define the default highlighting." For version 5.7 and earlier: only when not done already" For version 5.8 and later: only when an item doesn't have highlighting yetif version >= 508 || !exists("did_dot_syntax_inits")  if version < 508    let did_dot_syntax_inits = 1    command -nargs=+ HiLink hi link <args>  else    command -nargs=+ HiLink hi def link <args>  endif   HiLink dotParErr	 Error  HiLink dotBraceErr	 Error  HiLink dotBrackErr	 Error   HiLink dotComment	 Comment  HiLink dotTodo	 Todo   HiLink dotParEncl	 Keyword  HiLink dotBrackEncl	 Keyword  HiLink dotBraceEncl	 Keyword   HiLink dotKeyword	 Keyword  HiLink dotType	 Type  HiLink dotKeyChar	 Keyword   HiLink dotString	 String  HiLink dotIdentifier	 Identifier   delcommand HiLinkendif let b:current_syntax = "dot" " vim: ts=8