annotate runtime/syntax/lifelines.vim @ 575:f1d46f948241 v7.0163

updated for version 7.0163
author vimboss
date Tue, 06 Dec 2005 20:04:44 +0000
parents 3fc0f57ecb91
children 01583c79d5f4
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: Lifelines (v 3.0.7) http://lifelines.sourceforge.net
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Patrick Texier <p.texier@orsennes.com>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Location: ftp://216.71.72.236/lifelines.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Last Change: 2002 Mar 03
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 " A bunch of useful lifelines keywords 3.0.7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn keyword lifelinesStatement set
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn keyword lifelinesUser getindi geindiset getfam getint getstr choosechild
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn keyword lifelinesUser chooseindi choosespouse choosesubset menuchoose
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn keyword lifelinesUser choosefam getintmsg getindimsg getstrmsg
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn keyword lifelinesProc proc func return call
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn keyword lifelinesInclude include
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn keyword lifelinesDef global
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn keyword lifelinesConditional if else elsif switch
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn keyword lifelinesRepeat continue break while
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn keyword lifelinesLogical and or not eq ne lt gt le ge strcmp eqstr nestr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn keyword lifelinesArithm add sub mul div mod exp neg incr decr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn keyword lifelinesIndi name fullname surname givens trimname birth
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn keyword lifelinesIndi death baptism burial
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn keyword lifelinesIndi father mother nextsib prevsib sex male female
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn keyword lifelinesIndi pn nspouses nfamilies parents title key
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn keyword lifelinesIndi soundex inode root indi firstindi nextindi
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn keyword lifelinesIndi previndi spouses families forindi indiset
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn keyword lifelinesIndi addtoset deletefromset lengthset union intersect
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn keyword lifelinesIndi difference parentset childset spouseset siblingset
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn keyword lifelinesIndi ancestorset descendentset descendantset uniqueset
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn keyword lifelinesIndi namesort keysort valuesort genindiset getindiset
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn keyword lifelinesIndi forindiset lastindi writeindi
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn keyword lifelinesIndi inset
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn keyword lifelinesFam marriage husband wife nchildren firstchild
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn keyword lifelinesFam lastchild fnode fam firstfam nextfam lastfam
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn keyword lifelinesFam prevfam children forfam writefam
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn keyword lifelinesList list empty length enqueue dequeue requeue
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn keyword lifelinesList push pop setel getel forlist inlist
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn keyword lifelinesTable table insert lookup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn keyword lifelinesGedcom xref tag value parent child sibling savenode
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn keyword lifelinesGedcom fornodes traverse createnode addnode deletenode
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn keyword lifelinesGedcom reference dereference getrecord
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn keyword lifelinesGedcom gengedcom gengedcomstrong gengedcomweak
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn keyword lifelinesFunct date place year long short gettoday dayformat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn keyword lifelinesFunct monthformat dateformat extractdate
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn keyword lifelinesFunct complexdate
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn keyword lifelinesFunct extractnames extractplaces extracttokens lower
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn keyword lifelinesFunct upper capitalize trim rjustify save strsave
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn keyword lifelinesFunct concat strconcat strlen substring index
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn keyword lifelinesFunct d card ord alpha roman strsoundex strtoint
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn keyword lifelinesFunct atoi linemode pagemod col row pos pageout nl
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn keyword lifelinesFunct sp qt newfile outfile copyfile print lock unlock
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn keyword lifelinesFunct database version system stddate program
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn keyword lifelinesFunct pvalue pagemode level extractdatestr debug
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn keyword lifelinesFunct f free getcol getproperty heapused
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn region lifelinesString start=+L\="+ skip=+\\\\\|\\"+ end=+"+ contains=lifelinesSpecial
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn region lifelinesComment start="/\*" end="\*/" contains=lifelinesComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 " Only integers with lifelines
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 syn match lifelinesNumber "\<\d\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 "catch errors caused by wrong parenthesis
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 "adapted from original c.vim written by Bram Moolenaar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 syn cluster lifelinesParenGroup contains=lifelinesParenError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 syn region lifelinesParen transparent start='(' end=')' contains=ALLBUT,@lifelinesParenGroup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 syn match lifelinesParenError ")"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 syn match lifelinesErrInParen contained "[{}]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 " 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
83
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 if version >= 508 || !exists("did_lifelines_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 let did_lifelines_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 HiLink lifelinesConditional Conditional
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 HiLink lifelinesArithm Operator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 HiLink lifelinesLogical Conditional
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 HiLink lifelinesInclude Include
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 HiLink lifelinesComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 HiLink lifelinesStatement Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 HiLink lifelinesUser Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 HiLink lifelinesFunct Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 HiLink lifelinesTable Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 HiLink lifelinesGedcom Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 HiLink lifelinesList Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 HiLink lifelinesRepeat Repeat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 HiLink lifelinesFam Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 HiLink lifelinesIndi Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 HiLink lifelinesProc Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 HiLink lifelinesDef Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 HiLink lifelinesString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 HiLink lifelinesNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 HiLink lifelinesParenError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 HiLink lifelinesErrInParen Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 let b:current_syntax = "lifelines"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 " vim: ts=8