annotate runtime/syntax/snnsres.vim @ 5212:2741b46e96bf v7.4a.032

updated for version 7.4a.032 Problem: New regexp engine: Does not match shorter alternative. (Ingo Karkat) Solution: Do not drop a new state when the PIM info is different.
author Bram Moolenaar <bram@vim.org>
date Wed, 17 Jul 2013 21:10:51 +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 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
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 " the accepted fields in the header
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn match snnsresNoHeader "No\. of patterns\s*:\s*" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn match snnsresNoHeader "No\. of input units\s*:\s*" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn match snnsresNoHeader "No\. of output units\s*:\s*" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn match snnsresNoHeader "No\. of variable input dimensions\s*:\s*" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match snnsresNoHeader "No\. of variable output dimensions\s*:\s*" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn match snnsresNoHeader "Maximum input dimensions\s*:\s*" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match snnsresNoHeader "Maximum output dimensions\s*:\s*" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match snnsresNoHeader "startpattern\s*:\s*" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn match snnsresNoHeader "endpattern\s*:\s*" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn match snnsresNoHeader "input patterns included" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn match snnsresNoHeader "teaching output included" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn match snnsresGen "generated at.*" contained contains=snnsresNumbers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn match snnsresGen "SNNS result file [Vv]\d\.\d" contained contains=snnsresNumbers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 " the header, what is not an accepted field, is an error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 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
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 " numbers inside the header
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn match snnsresNumbers "\d" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn match snnsresComment "#.*$" contains=snnsresTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn keyword snnsresTodo TODO XXX FIXME contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 if version >= 508 || !exists("did_snnsres_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 let did_snnsres_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 HiLink snnsresGen Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 HiLink snnsresHeader Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 HiLink snnsresNoHeader Define
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 HiLink snnsresNumbers Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 HiLink snnsresComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 HiLink snnsresTodo Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 endif
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 = "snnsres"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 " vim: ts=8 sw=2