robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
946c2a8ee8
master
1" Vim syntax file 2" Language: man.conf(5) - man configuration file 3" Previous Maintainer: Nikolai Weibull <now@bitwi.se> 4" Latest Revision: 2006-04-19 5 6if exists ( "b:current_syntax" ) 7finish 8endif 9 10let s: cpo_save = & cpo 11set cpo & vim 12 13syn keyword manconfTodo contained TODO FIXME XXX NOTE 14 15syn region manconfComment display oneline start = '^# 'end = '$ ' 16 \contains = manconfTodo , @Spell 17 18if ! has ( "win32" ) && $ OSTYPE =~ 'bsd' 19syn match manconfBegin display '^ ' 20 \nextgroup = manconfKeyword , manconfSection , 21 \manconfComment skipwhite 22 23syn keyword manconfKeyword contained _build _crunch 24 \nextgroup = manconfExtCmd skipwhite 25 26syn keyword manconfKeyword contained _suffix 27 \nextgroup = manconfExt skipwhite 28 29syn keyword manconfKeyword contained _crunch 30 31syn keyword manconfKeyword contained _subdir _version _whatdb 32 \nextgroup = manconfPaths skipwhite 33 34syn match manconfExtCmd contained display '\.\S\+ ' 35 \nextgroup = manconfPaths skipwhite 36 37syn match manconfSection contained '[ ^#_ \t ] \S * ' 38 \nextgroup = manconfPaths skipwhite 39 40syn keyword manconfSection contained _default 41 \nextgroup = manconfPaths skipwhite 42 43syn match manconfPaths contained display '\S\+ ' 44 \nextgroup = manconfPaths skipwhite 45 46syn match manconfExt contained display '\.\S\+ ' 47 48hi def link manconfExtCmd Type 49hi def link manconfSection Identifier 50hi def link manconfPaths String 51else 52syn match manconfBegin display '^ ' 53 \nextgroup = manconfBoolean , manconfKeyword , 54 \manconfDecompress , manconfComment skipwhite 55 56syn keyword manconfBoolean contained FSSTND FHS NOAUTOPATH NOCACHE 57 58syn keyword manconfKeyword contained MANBIN 59 \nextgroup = manconfPath skipwhite 60 61syn keyword manconfKeyword contained MANPATH MANPATH_MAP 62 \nextgroup = manconfFirstPath skipwhite 63 64syn keyword manconfKeyword contained APROPOS WHATIS TROFF NROFF JNROFF EQN 65 \NEQN JNEQN TBL COL REFER PIC VGRIND GRAP 66 \PAGER BROWSER HTMLPAGER CMP CAT COMPRESS 67 \DECOMPRESS MANDEFOPTIONS 68 \nextgroup = manconfCommand skipwhite 69 70syn keyword manconfKeyword contained COMPRESS_EXT 71 \nextgroup = manconfExt skipwhite 72 73syn keyword manconfKeyword contained MANSECT 74 \nextgroup = manconfManSect skipwhite 75 76syn match manconfPath contained display '\S\+ ' 77 78syn match manconfFirstPath contained display '\S\+ ' 79 \nextgroup = manconfSecondPath skipwhite 80 81syn match manconfSecondPath contained display '\S\+ ' 82 83syn match manconfCommand contained display '\%(/ [ ^/ \t ] \+\)\+ ' 84 \nextgroup = manconfCommandOpt skipwhite 85 86syn match manconfCommandOpt contained display '\S\+ ' 87 \nextgroup = manconfCommandOpt skipwhite 88 89syn match manconfExt contained display '\.\S\+ ' 90 91syn match manconfManSect contained '[ ^: ] \+ 'nextgroup = manconfManSectSep 92 93syn match manconfManSectSep contained ': 'nextgroup = manconfManSect 94 95syn match manconfDecompress contained '\.\S\+ ' 96 \nextgroup = manconfCommand skipwhite 97 98hi def link manconfBoolean Boolean 99hi def link manconfPath String 100hi def link manconfFirstPath manconfPath 101hi def link manconfSecondPath manconfPath 102hi def link manconfCommand String 103hi def link manconfCommandOpt Special 104hi def link manconfManSect Identifier 105hi def link manconfManSectSep Delimiter 106hi def link manconfDecompress Type 107endif 108 109hi def link manconfTodo Todo 110hi def link manconfComment Comment 111hi def link manconfKeyword Keyword 112hi def link manconfExt Type 113 114let b: current_syntax = "manconf" 115 116let & cpo = s: cpo_save 117unlet s: cpo_save