Mercurial > vim
annotate runtime/syntax/snnspat.vim @ 31207:1fcabfdd0547 v9.0.0937
patch 9.0.0937: forked repositories send out useless email
Commit: https://github.com/vim/vim/commit/e2da59851a4a24873d0db659f6adb1918bedb216
Author: shane.xb.qian <shane.qian@foxmail.com>
Date: Thu Nov 24 12:01:45 2022 +0000
patch 9.0.0937: forked repositories send out useless email
Problem: Forked repositories send out useless email.
Solution: When Coverity fails to run just ignore it. (Shane-XB-Qian,
closes #11604)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 24 Nov 2022 13:15:02 +0100 |
parents | 46763b01cd9a |
children |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: SNNS pattern file | |
3 " Maintainer: Davide Alberani <alberanid@bigfoot.com> | |
3312 | 4 " Last Change: 2012 Feb 03 by Thilo Six |
7 | 5 " Version: 0.2 |
6 " URL: http://digilander.iol.it/alberanid/vim/syntax/snnspat.vim | |
7 " | |
8 " SNNS http://www-ra.informatik.uni-tuebingen.de/SNNS/ | |
9 " is a simulator for neural networks. | |
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 | 13 finish |
14 endif | |
15 | |
3312 | 16 let s:cpo_save = &cpo |
17 set cpo&vim | |
7 | 18 |
19 " anything that isn't part of the header, a comment or a number | |
20 " is wrong | |
21 syn match snnspatError ".*" | |
22 " hoping that matches any kind of notation... | |
23 syn match snnspatAccepted "\([-+]\=\(\d\+\.\|\.\)\=\d\+\([Ee][-+]\=\d\+\)\=\)" | |
24 syn match snnspatAccepted "\s" | |
25 syn match snnspatBrac "\[\s*\d\+\(\s\|\d\)*\]" contains=snnspatNumbers | |
26 | |
27 " the accepted fields in the header | |
28 syn match snnspatNoHeader "No\. of patterns\s*:\s*" contained | |
29 syn match snnspatNoHeader "No\. of input units\s*:\s*" contained | |
30 syn match snnspatNoHeader "No\. of output units\s*:\s*" contained | |
31 syn match snnspatNoHeader "No\. of variable input dimensions\s*:\s*" contained | |
32 syn match snnspatNoHeader "No\. of variable output dimensions\s*:\s*" contained | |
33 syn match snnspatNoHeader "Maximum input dimensions\s*:\s*" contained | |
34 syn match snnspatNoHeader "Maximum output dimensions\s*:\s*" contained | |
35 syn match snnspatGen "generated at.*" contained contains=snnspatNumbers | |
36 syn match snnspatGen "SNNS pattern definition file [Vv]\d\.\d" contained contains=snnspatNumbers | |
37 | |
38 " the header, what is not an accepted field, is an error | |
39 syn region snnspatHeader start="^SNNS" end="^\s*[-+\.]\=[0-9#]"me=e-2 contains=snnspatNoHeader,snnspatNumbers,snnspatGen,snnspatBrac | |
40 | |
41 " numbers inside the header | |
42 syn match snnspatNumbers "\d" contained | |
43 syn match snnspatComment "#.*$" contains=snnspatTodo | |
44 syn keyword snnspatTodo TODO XXX FIXME contained | |
45 | |
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 | 56 |
57 | |
58 let b:current_syntax = "snnspat" | |
59 | |
3312 | 60 let &cpo = s:cpo_save |
61 unlet s:cpo_save | |
7 | 62 " vim: ts=8 sw=2 |