annotate runtime/syntax/snnsnet.vim @ 2139:35effbd07a25 v7.2.421

updated for version 7.2.421 Problem: Folds are sometimes not updated properly and there is no way to force an update. Solution: Make "zx" and "zX" recompute folds (suggested by Christian Brabandt)
author Bram Moolenaar <bram@zimbu.org>
date Thu, 13 May 2010 17:35:59 +0200
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: SNNS network file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Davide Alberani <alberanid@bigfoot.com>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Last Change: 28 Apr 2001
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Version: 0.2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " URL: http://digilander.iol.it/alberanid/vim/syntax/snnsnet.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " SNNS http://www-ra.informatik.uni-tuebingen.de/SNNS/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " is a simulator for neural networks.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn match snnsnetTitle "no\."
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn match snnsnetTitle "type name"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn match snnsnetTitle "unit name"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn match snnsnetTitle "act\( func\)\="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn match snnsnetTitle "out func"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match snnsnetTitle "site\( name\)\="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn match snnsnetTitle "site function"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match snnsnetTitle "source:weight"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match snnsnetTitle "unitNo\."
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn match snnsnetTitle "delta x"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn match snnsnetTitle "delta y"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn keyword snnsnetTitle typeName unitName bias st position subnet layer sites name target z LLN LUN Toff Soff Ctype
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn match snnsnetType "SNNS network definition file [Vv]\d.\d.*" contains=snnsnetNumbers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn match snnsnetType "generated at.*" contains=snnsnetNumbers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn match snnsnetType "network name\s*:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn match snnsnetType "source files\s*:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn match snnsnetType "no\. of units\s*:.*" contains=snnsnetNumbers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn match snnsnetType "no\. of connections\s*:.*" contains=snnsnetNumbers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn match snnsnetType "no\. of unit types\s*:.*" contains=snnsnetNumbers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn match snnsnetType "no\. of site types\s*:.*" contains=snnsnetNumbers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn match snnsnetType "learning function\s*:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn match snnsnetType "pruning function\s*:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn match snnsnetType "subordinate learning function\s*:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn match snnsnetType "update function\s*:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn match snnsnetSection "unit definition section"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn match snnsnetSection "unit default section"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn match snnsnetSection "site definition section"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn match snnsnetSection "type definition section"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn match snnsnetSection "connection definition section"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn match snnsnetSection "layer definition section"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn match snnsnetSection "subnet definition section"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn match snnsnetSection "3D translation section"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn match snnsnetSection "time delay section"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn match snnsnetNumbers "\d" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn match snnsnetComment "#.*$" contains=snnsnetTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn keyword snnsnetTodo TODO XXX FIXME contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 if version >= 508 || !exists("did_snnsnet_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 let did_snnsnet_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 HiLink snnsnetType Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 HiLink snnsnetComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 HiLink snnsnetNumbers Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 HiLink snnsnetSection Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 HiLink snnsnetTitle Label
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 HiLink snnsnetTodo Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 let b:current_syntax = "snnsnet"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 " vim: ts=8 sw=2