annotate runtime/syntax/acedb.vim @ 202:b6450bf509d8

updated for version 7.0060
author vimboss
date Tue, 15 Mar 2005 22:28:00 +0000
parents 3fc0f57ecb91
children 43efa4f5a8ea
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: AceDB model files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Stewart Morris (Stewart.Morris@ed.ac.uk)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Last change: Thu Apr 26 10:38:01 BST 2001
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " URL: http://www.ed.ac.uk/~swmorris/vim/acedb.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " Syntax file to handle all $ACEDB/wspec/*.wrm files, primarily models.wrm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " AceDB software is available from http://www.acedb.org
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn keyword acedbXref XREF
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn keyword acedbModifier UNIQUE REPEAT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn keyword acedbModifier Constraints
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn keyword acedbType DateType Int Text Float
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 " Magic tags from: http://genome.cornell.edu/acedocs/magic/summary.html
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn keyword acedbMagic pick_me_to_call No_cache Non_graphic Title
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn keyword acedbMagic Flipped Centre Extent View Default_view
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn keyword acedbMagic From_map Minimal_view Main_Marker Map Includes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn keyword acedbMagic Mapping_data More_data Position Ends Left Right
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn keyword acedbMagic Multi_Position Multi_Ends With Error Relative
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn keyword acedbMagic Min Anchor Gmap Grid_map Grid Submenus Cambridge
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn keyword acedbMagic No_buttons Columns Colour Surround_colour Tag
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn keyword acedbMagic Scale_unit Cursor Cursor_on Cursor_unit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn keyword acedbMagic Locator Magnification Projection_lines_on
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn keyword acedbMagic Marker_points Marker_intervals Contigs
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn keyword acedbMagic Physical_genes Two_point Multi_point Likelihood
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn keyword acedbMagic Point_query Point_yellow Point_width
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn keyword acedbMagic Point_pne Point_pe Point_nne Point_ne
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn keyword acedbMagic Derived_tags DT_query DT_width DT_no_duplicates
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn keyword acedbMagic RH_data RH_query RH_spacing RH_show_all
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn keyword acedbMagic Names_on Width Symbol Colours Pne Pe Nne pMap
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn keyword acedbMagic Sequence Gridded FingerPrint In_Situ Cosmid_grid
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn keyword acedbMagic Layout Lines_at Space_at No_stagger A1_labelling
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn keyword acedbMagic DNA Structure From Source Source_Exons
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn keyword acedbMagic Coding CDS Transcript Assembly_tags Allele
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn keyword acedbMagic Display Colour Frame_sensitive Strand_sensitive
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn keyword acedbMagic Score_bounds Percent Bumpable Width Symbol
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn keyword acedbMagic Blixem_N Address E_mail Paper Reference Title
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn keyword acedbMagic Point_1 Point_2 Calculation Full One_recombinant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn keyword acedbMagic Tested Selected_trans Backcross Back_one
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn keyword acedbMagic Dom_semi Dom_let Direct Complex_mixed Calc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn keyword acedbMagic Calc_upper_conf Item_1 Item_2 Results A_non_B
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn keyword acedbMagic Score Score_by_offset Score_by_width
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn keyword acedbMagic Right_priority Blastn Blixem Blixem_X
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn keyword acedbMagic Journal Year Volume Page Author
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn keyword acedbMagic Selected One_all Recs_all One_let
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn keyword acedbMagic Sex_full Sex_one Sex_cis Dom_one Dom_selected
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn keyword acedbMagic Calc_distance Calc_lower_conf Canon_for_cosmid
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn keyword acedbMagic Reversed_physical Points Positive Negative
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn keyword acedbMagic Point_error_scale Point_segregate_ordered
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn keyword acedbMagic Point_symbol Interval_JTM Interval_RD
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn keyword acedbMagic EMBL_feature Homol Feature
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn keyword acedbMagic DT_tag Spacer Spacer_colour Spacer_width
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn keyword acedbMagic RH_positive RH_negative RH_contradictory Query
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn keyword acedbMagic Clone Y_remark PCR_remark Hybridizes_to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn keyword acedbMagic Row Virtual_row Mixed In_pool Subpool B_non_A
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 syn keyword acedbMagic Interval_SRK Point_show_marginal Subsequence
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 syn keyword acedbMagic Visible Properties Transposon
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 syn match acedbClass "^?\w\+\|^#\w\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 syn match acedbComment "//.*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 syn region acedbComment start="/\*" end="\*/"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 syn match acedbComment "^#\W.*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 syn match acedbHelp "^\*\*\w\+$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 syn match acedbTag "[^^]?\w\+\|[^^]#\w\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 syn match acedbBlock "//#.\+#$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 syn match acedbOption "^_[DVH]\S\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 syn match acedbFlag "\s\+-\h\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 syn match acedbSubclass "^Class"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 syn match acedbSubtag "^Visible\|^Is_a_subclass_of\|^Filter\|^Hidden"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 syn match acedbNumber "\<\d\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 syn match acedbNumber "\<\d\+\.\d\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 syn match acedbHyb "\<Positive_\w\+\>\|\<Negative\w\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 syn region acedbString start=/"/ end=/"/ skip=/\\"/ oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 " Rest of syntax highlighting rules start here
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 " 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
91 if version >= 508 || !exists("did_acedb_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 let did_acedb_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 HiLink acedbMagic Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 HiLink acedbHyb Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 HiLink acedbType Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 HiLink acedbOption Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 HiLink acedbSubclass Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 HiLink acedbSubtag Include
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 HiLink acedbFlag Include
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 HiLink acedbTag Include
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 HiLink acedbClass Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 HiLink acedbHelp Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 HiLink acedbXref Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 HiLink acedbModifier Label
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 HiLink acedbComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 HiLink acedbBlock ModeMsg
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 HiLink acedbNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 HiLink acedbString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 let b:current_syntax = "acedb"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 " The structure of the model.wrm file is sensitive to mixed tab and space
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 " indentation and assumes tabs are 8 so...
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 se ts=8