Mercurial > vim
annotate runtime/syntax/esterel.vim @ 19627:6b1564fcab92 v8.2.0370
patch 8.2.0370: the typebuf_was_filled flag is sometimes not reset
Commit: https://github.com/vim/vim/commit/e49b4bb89505fad28cf89f0891aef3e2d397919e
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Mar 11 13:01:40 2020 +0100
patch 8.2.0370: the typebuf_was_filled flag is sometimes not reset
Problem: The typebuf_was_filled flag is sometimes not reset, which may
cause a hang.
Solution: Make sure typebuf_was_filled is reset when the typeahead buffer is
empty.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 11 Mar 2020 13:15:04 +0100 |
parents | 46763b01cd9a |
children |
rev | line source |
---|---|
277 | 1 " Vim syntax file |
846 | 2 " Language: ESTEREL |
3 " Maintainer: Maurizio Tranchero <maurizio.tranchero@polito.it> - <maurizio.tranchero@gmail.com> | |
1621 | 4 " Credits: Luca Necchi <luca.necchi@polito.it>, Nikos Andrikos <nick.andrik@gmail.com> |
846 | 5 " First Release: Tue May 17 23:49:39 CEST 2005 |
1621 | 6 " Last Change: Tue May 6 13:29:56 CEST 2008 |
7 " Version: 0.8 | |
277 | 8 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
1621
diff
changeset
|
9 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
1621
diff
changeset
|
10 if exists("b:current_syntax") |
277 | 11 finish |
12 endif | |
13 | |
14 " case is significant | |
15 syn case ignore | |
16 " Esterel Regions | |
846 | 17 syn region esterelModule start=/module/ end=/end module/ contains=ALLBUT,esterelModule |
18 syn region esterelLoop start=/loop/ end=/end loop/ contains=ALLBUT,esterelModule | |
19 syn region esterelAbort start=/abort/ end=/when/ contains=ALLBUT,esterelModule | |
20 syn region esterelAbort start=/weak abort/ end=/when/ contains=ALLBUT,esterelModule | |
21 syn region esterelEvery start=/every/ end=/end every/ contains=ALLBUT,esterelModule | |
22 syn region esterelIf start=/if/ end=/end if/ contains=ALLBUT,esterelModule | |
23 syn region esterelConcurrent transparent start=/\[/ end=/\]/ contains=ALLBUT,esterelModule | |
24 syn region esterelIfThen start=/if/ end=/then/ oneline | |
277 | 25 " Esterel Keywords |
846 | 26 syn keyword esterelIO input output inputoutput constant |
27 syn keyword esterelBoolean and or not xor xnor nor nand | |
1621 | 28 syn keyword esterelExpressions mod pre |
846 | 29 syn keyword esterelStatement nothing halt |
30 syn keyword esterelStatement module signal sensor end | |
277 | 31 syn keyword esterelStatement every do loop abort weak |
32 syn keyword esterelStatement emit present await | |
846 | 33 syn keyword esterelStatement pause when immediate |
34 syn keyword esterelStatement if then else case | |
35 syn keyword esterelStatement var in run suspend | |
36 syn keyword esterelStatement repeat times combine with | |
37 syn keyword esterelStatement assert sustain | |
38 " check what it is the following | |
39 syn keyword esterelStatement relation | |
40 syn keyword esterelFunctions function procedure task | |
41 syn keyword esterelSysCall call trap exit exec | |
277 | 42 " Esterel Types |
1621 | 43 syn keyword esterelType integer float bolean |
277 | 44 " Esterel Comment |
1621 | 45 syn match esterelComment "%.*$" |
277 | 46 " Operators and special characters |
1621 | 47 syn match esterelSpecial ":" |
48 syn match esterelSpecial "<=" | |
49 syn match esterelSpecial ">=" | |
50 syn match esterelSpecial "+" | |
51 syn match esterelSpecial "-" | |
52 syn match esterelSpecial "=" | |
53 syn match esterelSpecial ";" | |
54 syn match esterelSpecial "/" | |
55 syn match esterelSpecial "?" | |
56 syn match esterelOperator "\[" | |
57 syn match esterelOperator "\]" | |
58 syn match esterelOperator ":=" | |
59 syn match esterelOperator "||" | |
60 syn match esterelStatement "\<\(if\|else\)\>" | |
61 syn match esterelNone "\<else\s\+if\>$" | |
62 syn match esterelNone "\<else\s\+if\>\s" | |
277 | 63 |
64 " Class Linking | |
65 | |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
66 hi def link esterelStatement Statement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
67 hi def link esterelType Type |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
68 hi def link esterelComment Comment |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
69 hi def link esterelBoolean Number |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
70 hi def link esterelExpressions Number |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
71 hi def link esterelIO String |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
72 hi def link esterelOperator Type |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
73 hi def link esterelSysCall Type |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
74 hi def link esterelFunctions Type |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
75 hi def link esterelSpecial Special |
277 | 76 |
77 | |
78 let b:current_syntax = "esterel" |