codekingpro/portable-devtools
114k
1" Vim syntax file2" Language: LifeLines (v 3.0.62) <http://lifelines.sourceforge.net>3" Maintainer: Patrick Texier <p.texier@orsennes.com>4" Location: <http://patrick.texier.free.fr/vim/syntax/lifelines.vim>5" Last Change: 2010 May 76 7" option to highlight error obsolete statements8" add the following line to your .vimrc file :9" let lifelines_deprecated = 110 11" For version 5.x: Clear all syntax items12" For version 6.x: Quit when a syntax file was already loaded13 14" quit when a syntax file was already loaded15if exists("b:current_syntax")16 finish17endif18 19" A bunch of useful LifeLines keywords 3.0.6220 21syn keyword lifelinesDecl char_encoding require option include22syn keyword lifelinesStatement set23syn keyword lifelinesUser getindi geindiset getfam getint getstr choosechild24syn keyword lifelinesUser chooseindi choosespouse choosesubset menuchoose25syn keyword lifelinesUser choosefam 26syn keyword lifelinesProc proc func return call27syn keyword lifelinesInclude include28syn keyword lifelinesDef global29syn keyword lifelinesConditional if else elsif switch30syn keyword lifelinesRepeat continue break while31syn keyword lifelinesLogical and or not eq ne lt gt le ge strcmp eqstr nestr32syn keyword lifelinesArithm add sub mul div mod exp neg incr decr33syn keyword lifelinesArithm cos sin tan arccos arcsin arctan34syn keyword lifelinesArithm deg2dms dms2deg spdist35syn keyword lifelinesIndi name fullname surname givens trimname birth36syn keyword lifelinesIndi death burial baptism37syn keyword lifelinesIndi father mother nextsib prevsib sex male female38syn keyword lifelinesIndi pn nspouses nfamilies parents title key39syn keyword lifelinesIndi soundex inode root indi firstindi nextindi40syn keyword lifelinesIndi previndi spouses families forindi indiset41syn keyword lifelinesIndi addtoset deletefromset union intersect42syn keyword lifelinesIndi difference parentset childset spouseset siblingset43syn keyword lifelinesIndi ancestorset descendentset descendantset uniqueset44syn keyword lifelinesIndi namesort keysort valuesort genindiset getindiset45syn keyword lifelinesIndi forindiset lastindi writeindi46syn keyword lifelinesIndi inset47syn keyword lifelinesFam marriage husband wife nchildren firstchild48syn keyword lifelinesFam lastchild fnode fam firstfam nextfam lastfam49syn keyword lifelinesFam prevfam children forfam writefam50syn keyword lifelinesFam fathers mothers Parents51syn keyword lifelinesList list empty length enqueue dequeue requeue52syn keyword lifelinesList push pop setel getel forlist inlist dup clear53syn keyword lifelinesTable table insert lookup54syn keyword lifelinesGedcom xref tag value parent child sibling savenode55syn keyword lifelinesGedcom fornodes traverse createnode addnode 56syn keyword lifelinesGedcom detachnode foreven fornotes forothr forsour57syn keyword lifelinesGedcom reference dereference getrecord58syn keyword lifelinesGedcom gengedcomstrong 59syn keyword lifelinesFunct date place year long short gettoday dayformat60syn keyword lifelinesFunct monthformat dateformat extractdate eraformat61syn keyword lifelinesFunct complexdate complexformat complexpic datepic62syn keyword lifelinesFunct extractnames extractplaces extracttokens lower63syn keyword lifelinesFunct yearformat64syn keyword lifelinesFunct upper capitalize trim rjustify 65syn keyword lifelinesFunct concat strconcat strlen substring index66syn keyword lifelinesFunct titlecase gettext67syn keyword lifelinesFunct d card ord alpha roman strsoundex strtoint68syn keyword lifelinesFunct atoi linemode pagemod col row pos pageout nl69syn keyword lifelinesFunct sp qt newfile outfile copyfile print lock unlock test70syn keyword lifelinesFunct database version system stddate program71syn keyword lifelinesFunct pvalue pagemode level extractdatestr debug72syn keyword lifelinesFunct f float int free getcol getproperty heapused73syn keyword lifelinesFunct sort rsort74syn keyword lifelinesFunct deleteel75syn keyword lifelinesFunct bytecode convertcode setlocale76" New dates functions (since 3.0.51)77syn keyword lifelinesFunct jd2date date2jd dayofweek setdate78 79" options to highlight as error obsolete statements80" please read ll-reportmanual.81 82if exists("lifelines_deprecated")83 syn keyword lifelinesError getintmsg getindimsg getstrmsg84 syn keyword lifelinesError gengedcom gengedcomweak deletenode85 syn keyword lifelinesError save strsave86 syn keyword lifelinesError lengthset87 if version >= 70088 let g:omni_syntax_group_exclude_lifelines = 'lifelinesError'89 endif90else91 syn keyword lifelinesUser getintmsg getindimsg getstrmsg92 syn keyword lifelinesGedcom gengedcom gengedcomweak deletenode93 syn keyword lifelinesFunct save strsave94 syn keyword lifelinesIndi lengthset95endif96 97syn region lifelinesString start=+L\="+ skip=+\\\\\|\\"+ end=+"+ contains=lifelinesSpecial98 99syn match lifelinesSpecial "\\\(\\\|\(n\|t\)\)" contained100 101syn keyword lifelinesTodo contained TODO FIXME XXX102syn region lifelinesComment start="/\*" end="\*/" contains=lifelinesTodo103 104" integers105syn match lifelinesNumber "-\=\<\d\+\>"106"floats, with dot107syn match lifelinesNumber "-\=\<\d\+\.\d*\>"108"floats, starting with a dot109syn match lifelinesNumber "-\=\.\d\+\>"110 111" folding using {}112syn region lifelinesFoldBlock start="{" end="}" transparent fold113 114"catch errors caused by wrong parenthesis115"adapted from original c.vim written by Bram Moolenaar116 117syn cluster lifelinesParenGroup contains=lifelinesParenError118syn region lifelinesParen transparent start='(' end=')' contains=ALLBUT,@lifelinesParenGroup119syn match lifelinesParenError ")"120syn match lifelinesErrInParen contained "[{}]"121 122" Define the default highlighting.123" Only when an item doesn't have highlighting yet124 125 126hi def link lifelinesConditional Conditional127hi def link lifelinesArithm Operator128hi def link lifelinesLogical Conditional129hi def link lifelinesInclude Include130hi def link lifelinesComment Comment131hi def link lifelinesStatement Statement132hi def link lifelinesUser Statement133hi def link lifelinesFunct Statement134hi def link lifelinesTable Statement135hi def link lifelinesGedcom Statement136hi def link lifelinesList Statement137hi def link lifelinesRepeat Repeat138hi def link lifelinesFam Statement139hi def link lifelinesIndi Statement140hi def link lifelinesProc Statement141hi def link lifelinesDef Statement142hi def link lifelinesString String143hi def link lifelinesSpecial Special144hi def link lifelinesNumber Number145hi def link lifelinesParenError Error146hi def link lifelinesErrInParen Error147hi def link lifelinesError Error148hi def link lifelinesTodo Todo149hi def link lifelinesDecl PreProc150 151 152let b:current_syntax = "lifelines"153 154" vim: ts=8 sw=4155 