annotate runtime/syntax/promela.vim @ 9967:45098d7f72b6 v7.4.2257

commit https://github.com/vim/vim/commit/9f28953f0c1e3d9fffd49af76503f54eaa279acb Author: Bram Moolenaar <Bram@vim.org> Date: Fri Aug 26 16:39:03 2016 +0200 patch 7.4.2257 Problem: Coverity complains about not checking for NULL. Solution: Check for out of memory.
author Christian Brabandt <cb@256bit.org>
date Fri, 26 Aug 2016 16:45:07 +0200
parents 5232b9862f23
children 43efa4f5a8ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1620
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
1 " Vim syntax file
1702
5232b9862f23 updated for version 7.2-000
vimboss
parents: 1620
diff changeset
2 " Language: ProMeLa
1620
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
3 " Maintainer: Maurizio Tranchero <maurizio.tranchero@polito.it> - <maurizio.tranchero@gmail.com>
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
4 " First Release: Mon Oct 16 08:49:46 CEST 2006
1702
5232b9862f23 updated for version 7.2-000
vimboss
parents: 1620
diff changeset
5 " Last Change: Thu Aug 7 21:22:48 CEST 2008
5232b9862f23 updated for version 7.2-000
vimboss
parents: 1620
diff changeset
6 " Version: 0.5
1620
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
7
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
8 " For version 5.x: Clear all syntax items
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
9 " For version 6.x: Quit when a syntax file was already loaded
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
10 if version < 600
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
11 syntax clear
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
12 elseif exists("b:current_syntax")
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
13 finish
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
14 endif
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
15
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
16 " case is significant
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
17 " syn case ignore
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
18 " ProMeLa Keywords
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
19 syn keyword promelaStatement proctype if else while chan do od fi break goto unless
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
20 syn keyword promelaStatement active assert label atomic
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
21 syn keyword promelaFunctions skip timeout run
1702
5232b9862f23 updated for version 7.2-000
vimboss
parents: 1620
diff changeset
22 syn keyword promelaTodo contained TODO
1620
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
23 " ProMeLa Types
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
24 syn keyword promelaType bit bool byte short int
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
25 " Operators and special characters
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
26 syn match promelaOperator "!"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
27 syn match promelaOperator "?"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
28 syn match promelaOperator "->"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
29 syn match promelaOperator "="
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
30 syn match promelaOperator "+"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
31 syn match promelaOperator "*"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
32 syn match promelaOperator "/"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
33 syn match promelaOperator "-"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
34 syn match promelaOperator "<"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
35 syn match promelaOperator ">"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
36 syn match promelaOperator "<="
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
37 syn match promelaOperator ">="
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
38 syn match promelaSpecial "\["
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
39 syn match promelaSpecial "\]"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
40 syn match promelaSpecial ";"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
41 syn match promelaSpecial "::"
1702
5232b9862f23 updated for version 7.2-000
vimboss
parents: 1620
diff changeset
42 " ProMeLa Comments
5232b9862f23 updated for version 7.2-000
vimboss
parents: 1620
diff changeset
43 syn region promelaComment start="/\*" end="\*/" contains=promelaTodo,@Spell
5232b9862f23 updated for version 7.2-000
vimboss
parents: 1620
diff changeset
44 syn match promelaComment "//.*" contains=promelaTodo,@Spell
1620
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
45
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
46 " Class Linking
1702
5232b9862f23 updated for version 7.2-000
vimboss
parents: 1620
diff changeset
47 hi def link promelaStatement Statement
5232b9862f23 updated for version 7.2-000
vimboss
parents: 1620
diff changeset
48 hi def link promelaType Type
5232b9862f23 updated for version 7.2-000
vimboss
parents: 1620
diff changeset
49 hi def link promelaComment Comment
5232b9862f23 updated for version 7.2-000
vimboss
parents: 1620
diff changeset
50 hi def link promelaOperator Type
5232b9862f23 updated for version 7.2-000
vimboss
parents: 1620
diff changeset
51 hi def link promelaSpecial Special
5232b9862f23 updated for version 7.2-000
vimboss
parents: 1620
diff changeset
52 hi def link promelaFunctions Special
1620
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
53 hi def link promelaString String
1702
5232b9862f23 updated for version 7.2-000
vimboss
parents: 1620
diff changeset
54 hi def link promelaTodo Todo
1620
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
55
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
56 let b:current_syntax = "promela"