blob: 9c8a87cfda3549b873ce6ba569ce70c9a1a999a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
" Vim syntax file
" Language: ProMeLa
" Maintainer: Maurizio Tranchero <maurizio.tranchero@polito.it> - <maurizio.tranchero@gmail.com>
" First Release: Mon Oct 16 08:49:46 CEST 2006
" Last Change: Sat May 16 12:20:43 CEST 2007
" Version: 0.2
" For version 5.x: Clear all syntax items
" For version 6.x: Quit when a syntax file was already loaded
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
" case is significant
" syn case ignore
" ProMeLa Keywords
syn keyword promelaStatement proctype if else while chan do od fi break goto unless
syn keyword promelaStatement active assert label atomic
syn keyword promelaFunctions skip timeout run
" check what it is the following
" ProMeLa Types
syn keyword promelaType bit bool byte short int
" ProMeLa Regions
syn region promelaComment start="\/\/" end="$" keepend
syn region promelaString start="\"" end="\""
" syn region promelaComment start="//" end="$" contains=ALL
" syn region promelaComment start="/\*" end="\*/" contains=ALL
" ProMeLa Comment
syn match promelaComment "\/.*$"
syn match promelaComment "/\*.*\*/"
" Operators and special characters
syn match promelaOperator "!"
syn match promelaOperator "?"
syn match promelaOperator "->"
syn match promelaOperator "="
syn match promelaOperator "+"
syn match promelaOperator "*"
syn match promelaOperator "/"
syn match promelaOperator "-"
syn match promelaOperator "<"
syn match promelaOperator ">"
syn match promelaOperator "<="
syn match promelaOperator ">="
syn match promelaSpecial "\["
syn match promelaSpecial "\]"
syn match promelaSpecial ";"
syn match promelaSpecial "::"
" Class Linking
hi def link promelaStatement Statement
hi def link promelaType Type
hi def link promelaComment Comment
hi def link promelaOperator Type
hi def link promelaSpecial Special
hi def link promelaFunctions Special
hi def link promelaString String
let b:current_syntax = "promela"
|