Mercurial > vim
annotate runtime/syntax/snnsnet.vim @ 10501:cd36f3024b06 v8.0.0143
commit https://github.com/vim/vim/commit/f845b87f2b3a45cbee160e28d7a3f50e54054809
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jan 6 14:04:54 2017 +0100
patch 8.0.0143: line number of current buffer in getbufinfo() is wrong
Problem: Line number of current buffer in getbufinfo() is wrong.
Solution: For the current buffer use the current line number. (Ken Takata)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 06 Jan 2017 14:15:04 +0100 |
parents | 46763b01cd9a |
children |
rev | line source |
---|---|
7 | 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 | |
7 " | |
8 " SNNS http://www-ra.informatik.uni-tuebingen.de/SNNS/ | |
9 " is a simulator for neural networks. | |
10 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
11 " 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
|
12 if exists("b:current_syntax") |
7 | 13 finish |
14 endif | |
15 | |
16 syn match snnsnetTitle "no\." | |
17 syn match snnsnetTitle "type name" | |
18 syn match snnsnetTitle "unit name" | |
19 syn match snnsnetTitle "act\( func\)\=" | |
20 syn match snnsnetTitle "out func" | |
21 syn match snnsnetTitle "site\( name\)\=" | |
22 syn match snnsnetTitle "site function" | |
23 syn match snnsnetTitle "source:weight" | |
24 syn match snnsnetTitle "unitNo\." | |
25 syn match snnsnetTitle "delta x" | |
26 syn match snnsnetTitle "delta y" | |
27 syn keyword snnsnetTitle typeName unitName bias st position subnet layer sites name target z LLN LUN Toff Soff Ctype | |
28 | |
29 syn match snnsnetType "SNNS network definition file [Vv]\d.\d.*" contains=snnsnetNumbers | |
30 syn match snnsnetType "generated at.*" contains=snnsnetNumbers | |
31 syn match snnsnetType "network name\s*:" | |
32 syn match snnsnetType "source files\s*:" | |
33 syn match snnsnetType "no\. of units\s*:.*" contains=snnsnetNumbers | |
34 syn match snnsnetType "no\. of connections\s*:.*" contains=snnsnetNumbers | |
35 syn match snnsnetType "no\. of unit types\s*:.*" contains=snnsnetNumbers | |
36 syn match snnsnetType "no\. of site types\s*:.*" contains=snnsnetNumbers | |
37 syn match snnsnetType "learning function\s*:" | |
38 syn match snnsnetType "pruning function\s*:" | |
39 syn match snnsnetType "subordinate learning function\s*:" | |
40 syn match snnsnetType "update function\s*:" | |
41 | |
42 syn match snnsnetSection "unit definition section" | |
43 syn match snnsnetSection "unit default section" | |
44 syn match snnsnetSection "site definition section" | |
45 syn match snnsnetSection "type definition section" | |
46 syn match snnsnetSection "connection definition section" | |
47 syn match snnsnetSection "layer definition section" | |
48 syn match snnsnetSection "subnet definition section" | |
49 syn match snnsnetSection "3D translation section" | |
50 syn match snnsnetSection "time delay section" | |
51 | |
52 syn match snnsnetNumbers "\d" contained | |
53 syn match snnsnetComment "#.*$" contains=snnsnetTodo | |
54 syn keyword snnsnetTodo TODO XXX FIXME contained | |
55 | |
56 | |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
57 hi def link snnsnetType Type |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
58 hi def link snnsnetComment Comment |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
59 hi def link snnsnetNumbers Number |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
60 hi def link snnsnetSection Statement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
61 hi def link snnsnetTitle Label |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
62 hi def link snnsnetTodo Todo |
7 | 63 |
64 | |
65 let b:current_syntax = "snnsnet" | |
66 | |
67 " vim: ts=8 sw=2 |