annotate runtime/syntax/acedb.vim @ 20746:80469f93b621

Added tag v8.2.0925 for changeset 49673325ca13df2d031a2c3822fd8ffc7883a677
author Bram Moolenaar <Bram@vim.org>
date Sun, 07 Jun 2020 19:00:04 +0200
parents 46763b01cd9a
children
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
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
10 " quit when a syntax file was already loaded
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
11 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 syn keyword acedbXref XREF
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn keyword acedbModifier UNIQUE REPEAT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn keyword acedbModifier Constraints
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn keyword acedbType DateType Int Text Float
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 " Magic tags from: http://genome.cornell.edu/acedocs/magic/summary.html
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn keyword acedbMagic pick_me_to_call No_cache Non_graphic Title
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn keyword acedbMagic Flipped Centre Extent View Default_view
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn keyword acedbMagic From_map Minimal_view Main_Marker Map Includes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn keyword acedbMagic Mapping_data More_data Position Ends Left Right
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn keyword acedbMagic Multi_Position Multi_Ends With Error Relative
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn keyword acedbMagic Min Anchor Gmap Grid_map Grid Submenus Cambridge
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn keyword acedbMagic No_buttons Columns Colour Surround_colour Tag
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn keyword acedbMagic Scale_unit Cursor Cursor_on Cursor_unit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn keyword acedbMagic Locator Magnification Projection_lines_on
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn keyword acedbMagic Marker_points Marker_intervals Contigs
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn keyword acedbMagic Physical_genes Two_point Multi_point Likelihood
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn keyword acedbMagic Point_query Point_yellow Point_width
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn keyword acedbMagic Point_pne Point_pe Point_nne Point_ne
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn keyword acedbMagic Derived_tags DT_query DT_width DT_no_duplicates
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn keyword acedbMagic RH_data RH_query RH_spacing RH_show_all
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn keyword acedbMagic Names_on Width Symbol Colours Pne Pe Nne pMap
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn keyword acedbMagic Sequence Gridded FingerPrint In_Situ Cosmid_grid
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn keyword acedbMagic Layout Lines_at Space_at No_stagger A1_labelling
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn keyword acedbMagic DNA Structure From Source Source_Exons
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn keyword acedbMagic Coding CDS Transcript Assembly_tags Allele
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn keyword acedbMagic Display Colour Frame_sensitive Strand_sensitive
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn keyword acedbMagic Score_bounds Percent Bumpable Width Symbol
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn keyword acedbMagic Blixem_N Address E_mail Paper Reference Title
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn keyword acedbMagic Point_1 Point_2 Calculation Full One_recombinant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn keyword acedbMagic Tested Selected_trans Backcross Back_one
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn keyword acedbMagic Dom_semi Dom_let Direct Complex_mixed Calc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn keyword acedbMagic Calc_upper_conf Item_1 Item_2 Results A_non_B
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn keyword acedbMagic Score Score_by_offset Score_by_width
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn keyword acedbMagic Right_priority Blastn Blixem Blixem_X
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn keyword acedbMagic Journal Year Volume Page Author
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn keyword acedbMagic Selected One_all Recs_all One_let
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn keyword acedbMagic Sex_full Sex_one Sex_cis Dom_one Dom_selected
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn keyword acedbMagic Calc_distance Calc_lower_conf Canon_for_cosmid
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn keyword acedbMagic Reversed_physical Points Positive Negative
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn keyword acedbMagic Point_error_scale Point_segregate_ordered
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn keyword acedbMagic Point_symbol Interval_JTM Interval_RD
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn keyword acedbMagic EMBL_feature Homol Feature
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn keyword acedbMagic DT_tag Spacer Spacer_colour Spacer_width
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn keyword acedbMagic RH_positive RH_negative RH_contradictory Query
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn keyword acedbMagic Clone Y_remark PCR_remark Hybridizes_to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn keyword acedbMagic Row Virtual_row Mixed In_pool Subpool B_non_A
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn keyword acedbMagic Interval_SRK Point_show_marginal Subsequence
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn keyword acedbMagic Visible Properties Transposon
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 syn match acedbClass "^?\w\+\|^#\w\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 syn match acedbComment "//.*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 syn region acedbComment start="/\*" end="\*/"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 syn match acedbComment "^#\W.*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 syn match acedbHelp "^\*\*\w\+$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 syn match acedbTag "[^^]?\w\+\|[^^]#\w\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 syn match acedbBlock "//#.\+#$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 syn match acedbOption "^_[DVH]\S\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 syn match acedbFlag "\s\+-\h\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 syn match acedbSubclass "^Class"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 syn match acedbSubtag "^Visible\|^Is_a_subclass_of\|^Filter\|^Hidden"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 syn match acedbNumber "\<\d\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 syn match acedbNumber "\<\d\+\.\d\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 syn match acedbHyb "\<Positive_\w\+\>\|\<Negative\w\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 syn region acedbString start=/"/ end=/"/ skip=/\\"/ oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 " Rest of syntax highlighting rules start here
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 " Define the default highlighting.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
86 " Only when an item doesn't have highlighting yet
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
88 hi def link acedbMagic Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
89 hi def link acedbHyb Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
90 hi def link acedbType Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
91 hi def link acedbOption Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
92 hi def link acedbSubclass Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
93 hi def link acedbSubtag Include
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
94 hi def link acedbFlag Include
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
95 hi def link acedbTag Include
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
96 hi def link acedbClass Todo
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
97 hi def link acedbHelp Todo
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
98 hi def link acedbXref Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
99 hi def link acedbModifier Label
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
100 hi def link acedbComment Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
101 hi def link acedbBlock ModeMsg
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
102 hi def link acedbNumber Number
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
103 hi def link acedbString String
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 let b:current_syntax = "acedb"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 " The structure of the model.wrm file is sensitive to mixed tab and space
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 " indentation and assumes tabs are 8 so...
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 se ts=8