2 " Language: SNNS result file
3 " Maintainer: Davide Alberani <alberanid@bigfoot.com>
4 " Last Change: 28 Apr 2001
6 " URL: http://digilander.iol.it/alberanid/vim/syntax/snnsres.vim
8 " SNNS http://www-ra.informatik.uni-tuebingen.de/SNNS/
9 " is a simulator for neural networks.
13 elseif exists("b:current_syntax")
17 " the accepted fields in the header
18 syn match snnsresNoHeader "No\. of patterns\s*:\s*" contained
19 syn match snnsresNoHeader "No\. of input units\s*:\s*" contained
20 syn match snnsresNoHeader "No\. of output units\s*:\s*" contained
21 syn match snnsresNoHeader "No\. of variable input dimensions\s*:\s*" contained
22 syn match snnsresNoHeader "No\. of variable output dimensions\s*:\s*" contained
23 syn match snnsresNoHeader "Maximum input dimensions\s*:\s*" contained
24 syn match snnsresNoHeader "Maximum output dimensions\s*:\s*" contained
25 syn match snnsresNoHeader "startpattern\s*:\s*" contained
26 syn match snnsresNoHeader "endpattern\s*:\s*" contained
27 syn match snnsresNoHeader "input patterns included" contained
28 syn match snnsresNoHeader "teaching output included" contained
29 syn match snnsresGen "generated at.*" contained contains=snnsresNumbers
30 syn match snnsresGen "SNNS result file [Vv]\d\.\d" contained contains=snnsresNumbers
32 " the header, what is not an accepted field, is an error
33 syn region snnsresHeader start="^SNNS" end="^\s*[-+\.]\=[0-9#]"me=e-2 contains=snnsresNoHeader,snnsresNumbers,snnsresGen
35 " numbers inside the header
36 syn match snnsresNumbers "\d" contained
37 syn match snnsresComment "#.*$" contains=snnsresTodo
38 syn keyword snnsresTodo TODO XXX FIXME contained
40 if version >= 508 || !exists("did_snnsres_syn_inits")
42 let did_snnsres_syn_inits = 1
43 command -nargs=+ HiLink hi link <args>
45 command -nargs=+ HiLink hi def link <args>
48 HiLink snnsresGen Statement
49 HiLink snnsresHeader Statement
50 HiLink snnsresNoHeader Define
51 HiLink snnsresNumbers Number
52 HiLink snnsresComment Comment
53 HiLink snnsresTodo Todo
58 let b:current_syntax = "snnsres"