annotate runtime/syntax/snnspat.vim @ 13453:5dab288bada8

Added tag v8.0.1600 for changeset 9b09f6e470e05362469f8b981bd7a8c7c2608ab6
author Christian Brabandt <cb@256bit.org>
date Mon, 12 Mar 2018 22:00:07 +0100
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 pattern file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Davide Alberani <alberanid@bigfoot.com>
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
4 " Last Change: 2012 Feb 03 by Thilo Six
7
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/snnspat.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: 3312
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: 3312
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
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
16 let s:cpo_save = &cpo
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
17 set cpo&vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 " anything that isn't part of the header, a comment or a number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 " is wrong
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn match snnspatError ".*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 " hoping that matches any kind of notation...
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn match snnspatAccepted "\([-+]\=\(\d\+\.\|\.\)\=\d\+\([Ee][-+]\=\d\+\)\=\)"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match snnspatAccepted "\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match snnspatBrac "\[\s*\d\+\(\s\|\d\)*\]" contains=snnspatNumbers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 " the accepted fields in the header
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn match snnspatNoHeader "No\. of patterns\s*:\s*" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn match snnspatNoHeader "No\. of input units\s*:\s*" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn match snnspatNoHeader "No\. of output units\s*:\s*" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn match snnspatNoHeader "No\. of variable input dimensions\s*:\s*" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn match snnspatNoHeader "No\. of variable output dimensions\s*:\s*" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn match snnspatNoHeader "Maximum input dimensions\s*:\s*" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn match snnspatNoHeader "Maximum output dimensions\s*:\s*" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn match snnspatGen "generated at.*" contained contains=snnspatNumbers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn match snnspatGen "SNNS pattern definition file [Vv]\d\.\d" contained contains=snnspatNumbers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 " the header, what is not an accepted field, is an error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn region snnspatHeader start="^SNNS" end="^\s*[-+\.]\=[0-9#]"me=e-2 contains=snnspatNoHeader,snnspatNumbers,snnspatGen,snnspatBrac
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 " numbers inside the header
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn match snnspatNumbers "\d" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn match snnspatComment "#.*$" contains=snnspatTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn keyword snnspatTodo TODO XXX FIXME contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
47 hi def link snnspatGen Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
48 hi def link snnspatHeader Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
49 hi def link snnspatNoHeader Define
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
50 hi def link snnspatNumbers Number
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
51 hi def link snnspatComment Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
52 hi def link snnspatError Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
53 hi def link snnspatTodo Todo
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
54 hi def link snnspatAccepted NONE
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
55 hi def link snnspatBrac NONE
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 let b:current_syntax = "snnspat"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
60 let &cpo = s:cpo_save
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
61 unlet s:cpo_save
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 " vim: ts=8 sw=2