annotate runtime/syntax/acedb.vim @ 0:76efa0be13f1

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