annotate runtime/syntax/promela.vim @ 3242:48252b5fd170 v7.3.390

updated for version 7.3.390 Problem: Using NULL buffer pointer in a window. Solution: Check for w_buffer being NULL in more places. (Bjorn Winckler)
author Bram Moolenaar <bram@vim.org>
date Fri, 30 Dec 2011 15:01:59 +0100
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"