Initial bulk commit for "Git on MSys"
[msysgit/historical-msysgit.git] / share / vim / vim58 / syntax / snnsnet.vim
blob6b24de56341a4ed6c98bce9c8d882eed1f5dc653
1 " Vim syntax file
2 " Language:     SNNS network file
3 " Maintainer:   Davide Alberani <alberanid@bigfoot.com>
4 " Last Change:  28 Apr 2001
5 " Version:      0.2
6 " URL:          http://digilander.iol.it/alberanid/vim/syntax/snnsnet.vim
8 " SNNS http://www-ra.informatik.uni-tuebingen.de/SNNS/
9 " is a simulator for neural networks.
11 if version < 600
12   syntax clear
13 elseif exists("b:current_syntax")
14   finish
15 endif
17 syn match       snnsnetTitle    "no\."
18 syn match       snnsnetTitle    "type name"
19 syn match       snnsnetTitle    "unit name"
20 syn match       snnsnetTitle    "act\( func\)\="
21 syn match       snnsnetTitle    "out func"
22 syn match       snnsnetTitle    "site\( name\)\="
23 syn match       snnsnetTitle    "site function"
24 syn match       snnsnetTitle    "source:weight"
25 syn match       snnsnetTitle    "unitNo\."
26 syn match       snnsnetTitle    "delta x"
27 syn match       snnsnetTitle    "delta y"
28 syn keyword     snnsnetTitle    typeName unitName bias st position subnet layer sites name target z LLN LUN Toff Soff Ctype
30 syn match       snnsnetType     "SNNS network definition file [Vv]\d.\d.*" contains=snnsnetNumbers
31 syn match       snnsnetType     "generated at.*" contains=snnsnetNumbers
32 syn match       snnsnetType     "network name\s*:"
33 syn match       snnsnetType     "source files\s*:"
34 syn match       snnsnetType     "no\. of units\s*:.*" contains=snnsnetNumbers
35 syn match       snnsnetType     "no\. of connections\s*:.*" contains=snnsnetNumbers
36 syn match       snnsnetType     "no\. of unit types\s*:.*" contains=snnsnetNumbers
37 syn match       snnsnetType     "no\. of site types\s*:.*" contains=snnsnetNumbers
38 syn match       snnsnetType     "learning function\s*:"
39 syn match       snnsnetType     "pruning function\s*:"
40 syn match       snnsnetType     "subordinate learning function\s*:"
41 syn match       snnsnetType     "update function\s*:"
43 syn match       snnsnetSection  "unit definition section"
44 syn match       snnsnetSection  "unit default section"
45 syn match       snnsnetSection  "site definition section"
46 syn match       snnsnetSection  "type definition section"
47 syn match       snnsnetSection  "connection definition section"
48 syn match       snnsnetSection  "layer definition section"
49 syn match       snnsnetSection  "subnet definition section"
50 syn match       snnsnetSection  "3D translation section"
51 syn match       snnsnetSection  "time delay section"
53 syn match       snnsnetNumbers  "\d" contained
54 syn match       snnsnetComment  "#.*$" contains=snnsnetTodo
55 syn keyword     snnsnetTodo     TODO XXX FIXME contained
57 if version >= 508 || !exists("did_snnsnet_syn_inits")
58   if version < 508
59     let did_snnsnet_syn_inits = 1
60     command -nargs=+ HiLink hi link <args>
61   else
62     command -nargs=+ HiLink hi def link <args>
63   endif
65   HiLink snnsnetType            Type
66   HiLink snnsnetComment         Comment
67   HiLink snnsnetNumbers         Number
68   HiLink snnsnetSection         Statement
69   HiLink snnsnetTitle           Label
70   HiLink snnsnetTodo            Todo
72   delcommand HiLink
73 endif
75 let b:current_syntax = "snnsnet"
77 " vim: ts=8 sw=2