annotate runtime/syntax/snnsnet.vim @ 9309:178252c6850e v7.4.1937

commit https://github.com/vim/vim/commit/ab47c61f46f0797308217cd3c045472cb0ec3195 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jun 14 22:02:26 2016 +0200 patch 7.4.1937 Problem: No test for directory stack in quickfix. Solution: Add a test. (Yegappan Lakshmanan)
author Christian Brabandt <cb@256bit.org>
date Tue, 14 Jun 2016 22:15:08 +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