annotate runtime/syntax/snnsnet.vim @ 29653:aa83cf7bef1c v9.0.0167

patch 9.0.0167: checking for text properties could be a bit more efficient Commit: https://github.com/vim/vim/commit/38ea2733b4dd8e9bfc4a5bb5c11cb661bf000c4e Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 7 22:04:56 2022 +0100 patch 9.0.0167: checking for text properties could be a bit more efficient Problem: Checking for text properties could be a bit more efficient. Solution: Return early when there are no text properties. Update TODO items.
author Bram Moolenaar <Bram@vim.org>
date Sun, 07 Aug 2022 23:15:03 +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: 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
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn match snnsnetTitle "no\."
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn match snnsnetTitle "type name"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn match snnsnetTitle "unit name"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn match snnsnetTitle "act\( func\)\="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn match snnsnetTitle "out func"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn match snnsnetTitle "site\( name\)\="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match snnsnetTitle "site function"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn match snnsnetTitle "source:weight"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match snnsnetTitle "unitNo\."
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match snnsnetTitle "delta x"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn match snnsnetTitle "delta y"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 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
28
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn match snnsnetType "SNNS network definition file [Vv]\d.\d.*" contains=snnsnetNumbers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn match snnsnetType "generated at.*" contains=snnsnetNumbers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn match snnsnetType "network name\s*:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn match snnsnetType "source files\s*:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn match snnsnetType "no\. of units\s*:.*" contains=snnsnetNumbers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn match snnsnetType "no\. of connections\s*:.*" contains=snnsnetNumbers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn match snnsnetType "no\. of unit types\s*:.*" contains=snnsnetNumbers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn match snnsnetType "no\. of site types\s*:.*" contains=snnsnetNumbers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn match snnsnetType "learning function\s*:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn match snnsnetType "pruning function\s*:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn match snnsnetType "subordinate learning function\s*:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn match snnsnetType "update function\s*:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn match snnsnetSection "unit definition section"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn match snnsnetSection "unit default section"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn match snnsnetSection "site definition section"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn match snnsnetSection "type definition section"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn match snnsnetSection "connection definition section"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn match snnsnetSection "layer definition section"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn match snnsnetSection "subnet definition section"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn match snnsnetSection "3D translation section"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn match snnsnetSection "time delay section"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn match snnsnetNumbers "\d" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn match snnsnetComment "#.*$" contains=snnsnetTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn keyword snnsnetTodo TODO XXX FIXME contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 let b:current_syntax = "snnsnet"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 " vim: ts=8 sw=2