Mercurial > vim
annotate runtime/syntax/esterel.vim @ 22097:f369bbd71a53 v8.2.1598
patch 8.2.1598: starting a hidden terminal resizes the current window
Commit: https://github.com/vim/vim/commit/2ce14589f210dcb3d17d1d80285256f8ac10abab
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 5 16:08:49 2020 +0200
patch 8.2.1598: starting a hidden terminal resizes the current window
Problem: Starting a hidden terminal resizes the current window.
Solution: Do not resize the current window for a hidden terminal.
(closes #6872)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 05 Sep 2020 16:15:03 +0200 |
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" |