annotate runtime/syntax/lifelines.vim @ 1049:82ca8ff21fd7 v7.0.175

updated for version 7.0-175
author vimboss
date Tue, 05 Dec 2006 09:32:29 +0000
parents 01583c79d5f4
children b17bbfa96fa0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
828
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
2 " Language: LifeLines (v 3.0.50) http://lifelines.sourceforge.net
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
3 " Maintainer: Patrick Texier <p.texier@genindre.org>
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
4 " Location: http://www.genindre.org/ftp/lifelines/lifelines.vim
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
5 " Last Change: 2005 Dec 22.
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
6
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
7 " option to highlight error obsolete statements
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
8 " add the following line to your .vimrc file or here :
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
9 " (level2 is for baptism)
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
10
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
11 " let lifelines_deprecated=1
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
12 " let lifelines_deprecated_level2=1
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
828
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
23 " A bunch of useful lifelines keywords 3.0.50
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
828
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
25 syn keyword lifelinesStatement set
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
26 syn keyword lifelinesUser getindi geindiset getfam getint getstr choosechild
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
27 syn keyword lifelinesUser chooseindi choosespouse choosesubset menuchoose
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
28 syn keyword lifelinesUser choosefam
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
29 syn keyword lifelinesProc proc func return call
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
30 syn keyword lifelinesInclude include
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
31 syn keyword lifelinesDef global
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn keyword lifelinesConditional if else elsif switch
828
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
33 syn keyword lifelinesRepeat continue break while
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
34 syn keyword lifelinesLogical and or not eq ne lt gt le ge strcmp eqstr nestr
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
35 syn keyword lifelinesArithm add sub mul div mod exp neg incr decr
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
36 syn keyword lifelinesArithm cos sin tan arccos arcsin arctan
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
37 syn keyword lifelinesArithm deg2dms dms2deg spdist
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
38 syn keyword lifelinesIndi name fullname surname givens trimname birth
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
39 syn keyword lifelinesIndi death burial
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
40 syn keyword lifelinesIndi father mother nextsib prevsib sex male female
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
41 syn keyword lifelinesIndi pn nspouses nfamilies parents title key
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
42 syn keyword lifelinesIndi soundex inode root indi firstindi nextindi
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
43 syn keyword lifelinesIndi previndi spouses families forindi indiset
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
44 syn keyword lifelinesIndi addtoset deletefromset union intersect
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
45 syn keyword lifelinesIndi difference parentset childset spouseset siblingset
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
46 syn keyword lifelinesIndi ancestorset descendentset descendantset uniqueset
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
47 syn keyword lifelinesIndi namesort keysort valuesort genindiset getindiset
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
48 syn keyword lifelinesIndi forindiset lastindi writeindi
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
49 syn keyword lifelinesIndi inset
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
50 syn keyword lifelinesFam marriage husband wife nchildren firstchild
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
51 syn keyword lifelinesFam lastchild fnode fam firstfam nextfam lastfam
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
52 syn keyword lifelinesFam prevfam children forfam writefam
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
53 syn keyword lifelinesFam fathers mothers Parents
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
54 syn keyword lifelinesList list empty length enqueue dequeue requeue
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
55 syn keyword lifelinesList push pop setel getel forlist inlist dup clear
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
56 syn keyword lifelinesTable table insert lookup
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
57 syn keyword lifelinesGedcom xref tag value parent child sibling savenode
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
58 syn keyword lifelinesGedcom fornodes traverse createnode addnode
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
59 syn keyword lifelinesGedcom detachnode foreven fornotes forothr forsour
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
60 syn keyword lifelinesGedcom reference dereference getrecord
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
61 syn keyword lifelinesFunct date place year long short gettoday dayformat
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
62 syn keyword lifelinesFunct monthformat dateformat extractdate eraformat
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
63 syn keyword lifelinesFunct complexdate complexformat complexpic datepic
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
64 syn keyword lifelinesFunct extractnames extractplaces extracttokens lower
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
65 syn keyword lifelinesFunct yearformat
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
66 syn keyword lifelinesFunct upper capitalize trim rjustify
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
67 syn keyword lifelinesFunct concat strconcat strlen substring index
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
68 syn keyword lifelinesFunct titlecase gettext
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
69 syn keyword lifelinesFunct d card ord alpha roman strsoundex strtoint
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
70 syn keyword lifelinesFunct atoi linemode pagemod col row pos pageout nl
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
71 syn keyword lifelinesFunct sp qt newfile outfile copyfile print lock unlock test
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
72 syn keyword lifelinesFunct database version system stddate program
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
73 syn keyword lifelinesFunct pvalue pagemode level extractdatestr debug
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
74 syn keyword lifelinesFunct f float int free getcol getproperty heapused
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
75 syn keyword lifelinesFunct sort rsort
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
76 syn keyword lifelinesFunct deleteel
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
77 syn keyword lifelinesFunct bytecode convertcode setlocale
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
78
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
79 " option to highlight error obsolete statements
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
80 " please read ll-reportmanual
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
81
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
82 if exists("lifelines_deprecated")
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
83 syn keyword lifelinesError getintmsg getindimsg getstrmsg
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
84 syn keyword lifelinesError gengedcom gengedcomstrong gengedcomweak deletenode
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
85 syn keyword lifelinesError save strsave
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
86 syn keyword lifelinesError lengthset
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
87 else
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
88 syn keyword lifelinesUser getintmsg getindimsg getstrmsg
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
89 syn keyword lifelinesGedcom gengedcom gengedcomstrong gengedcomweak deletenode
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
90 syn keyword lifelinesFunct save strsave
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
91 syn keyword lifelinesIndi lengthset
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
92 endif
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
93 if exists("lifelines_deprecated_level2")
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
94 syn keyword lifelinesError baptism
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
95 else
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
96 syn keyword lifelinesIndi baptism
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
97 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 syn region lifelinesString start=+L\="+ skip=+\\\\\|\\"+ end=+"+ contains=lifelinesSpecial
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100
828
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
101 syn match lifelinesSpecial "\\\(\\\|\(n\|t\)\)" contained
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
102
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
103 syn region lifelinesComment start="/\*" end="\*/"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104
828
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
105 " integers
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
106 syn match lifelinesNumber "-\=\<\d\+\>"
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
107 "floats, with dot
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
108 syn match lifelinesNumber "-\=\<\d\+\.\d*\>"
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
109 "floats, starting with a dot
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
110 syn match lifelinesNumber "-\=\.\d\+\>"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 "catch errors caused by wrong parenthesis
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 "adapted from original c.vim written by Bram Moolenaar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 syn cluster lifelinesParenGroup contains=lifelinesParenError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 syn region lifelinesParen transparent start='(' end=')' contains=ALLBUT,@lifelinesParenGroup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 syn match lifelinesParenError ")"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 syn match lifelinesErrInParen contained "[{}]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 if version >= 508 || !exists("did_lifelines_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 let did_lifelines_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 HiLink lifelinesConditional Conditional
828
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
133 HiLink lifelinesArithm Operator
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
134 HiLink lifelinesLogical Conditional
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
135 HiLink lifelinesInclude Include
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
136 HiLink lifelinesComment Comment
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
137 HiLink lifelinesStatement Statement
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
138 HiLink lifelinesUser Statement
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
139 HiLink lifelinesFunct Statement
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
140 HiLink lifelinesTable Statement
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
141 HiLink lifelinesGedcom Statement
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
142 HiLink lifelinesList Statement
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
143 HiLink lifelinesRepeat Repeat
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
144 HiLink lifelinesFam Statement
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
145 HiLink lifelinesIndi Statement
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
146 HiLink lifelinesProc Statement
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
147 HiLink lifelinesDef Statement
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
148 HiLink lifelinesString String
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
149 HiLink lifelinesSpecial Special
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
150 HiLink lifelinesNumber Number
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 HiLink lifelinesParenError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 HiLink lifelinesErrInParen Error
828
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 7
diff changeset
153 HiLink lifelinesError Error
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 let b:current_syntax = "lifelines"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 " vim: ts=8