annotate runtime/syntax/snnsres.vim @ 17956:1f6d5f9ddeb0 v8.1.1974

patch 8.1.1974: Coverity warns for using pointer as array Commit: https://github.com/vim/vim/commit/1f3165bc34c6c608584a73f13faec27dd7c7e2fa Author: Bram Moolenaar <Bram@vim.org> Date: Wed Sep 4 13:21:26 2019 +0200 patch 8.1.1974: Coverity warns for using pointer as array Problem: Coverity warns for using pointer as array. Solution: Call var2fpos() directly instead of using f_line().
author Bram Moolenaar <Bram@vim.org>
date Wed, 04 Sep 2019 13:30: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 result 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/snnsres.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 " the accepted fields in the header
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn match snnsresNoHeader "No\. of patterns\s*:\s*" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn match snnsresNoHeader "No\. of input units\s*:\s*" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn match snnsresNoHeader "No\. of output units\s*:\s*" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn match snnsresNoHeader "No\. of variable input dimensions\s*:\s*" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn match snnsresNoHeader "No\. of variable output dimensions\s*:\s*" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match snnsresNoHeader "Maximum input dimensions\s*:\s*" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn match snnsresNoHeader "Maximum output dimensions\s*:\s*" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match snnsresNoHeader "startpattern\s*:\s*" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match snnsresNoHeader "endpattern\s*:\s*" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn match snnsresNoHeader "input patterns included" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn match snnsresNoHeader "teaching output included" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn match snnsresGen "generated at.*" contained contains=snnsresNumbers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn match snnsresGen "SNNS result file [Vv]\d\.\d" contained contains=snnsresNumbers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 " the header, what is not an accepted field, is an error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn region snnsresHeader start="^SNNS" end="^\s*[-+\.]\=[0-9#]"me=e-2 contains=snnsresNoHeader,snnsresNumbers,snnsresGen
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 " numbers inside the header
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn match snnsresNumbers "\d" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn match snnsresComment "#.*$" contains=snnsresTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn keyword snnsresTodo TODO XXX FIXME contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
40 hi def link snnsresGen Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
41 hi def link snnsresHeader Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
42 hi def link snnsresNoHeader Define
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
43 hi def link snnsresNumbers Number
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
44 hi def link snnsresComment Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
45 hi def link snnsresTodo Todo
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 let b:current_syntax = "snnsres"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 " vim: ts=8 sw=2