annotate runtime/syntax/esterel.vim @ 35714:f7c1a8e37c0b v9.1.0592

patch 9.1.0592: runtime: filetype: Mediawiki files are not recognized Commit: https://github.com/vim/vim/commit/b5844104ab1259e061e023ea6259e4eb002e7170 Author: AvidSeeker <avidseeker7@protonmail.com> Date: Tue Jul 16 21:10:50 2024 +0200 patch 9.1.0592: runtime: filetype: Mediawiki files are not recognized Problem: filetype: Mediawiki files are not recognized Solution: detect "*.mw" and "*.wiki" as mediawiki filetype, include basic syntax and filetype plugins. (AvidSeeker) closes: #15266 Signed-off-by: AvidSeeker <avidseeker7@protonmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Wed, 17 Jul 2024 08:13:58 +0200
parents 46763b01cd9a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
277
fe16c18c24a7 updated for version 7.0074
vimboss
parents:
diff changeset
1 " Vim syntax file
846
db44f7b81373 updated for version 7.0f03
vimboss
parents: 839
diff changeset
2 " Language: ESTEREL
db44f7b81373 updated for version 7.0f03
vimboss
parents: 839
diff changeset
3 " Maintainer: Maurizio Tranchero <maurizio.tranchero@polito.it> - <maurizio.tranchero@gmail.com>
1621
82b5078be2dd updated for version 7.2a
vimboss
parents: 846
diff changeset
4 " Credits: Luca Necchi <luca.necchi@polito.it>, Nikos Andrikos <nick.andrik@gmail.com>
846
db44f7b81373 updated for version 7.0f03
vimboss
parents: 839
diff changeset
5 " First Release: Tue May 17 23:49:39 CEST 2005
1621
82b5078be2dd updated for version 7.2a
vimboss
parents: 846
diff changeset
6 " Last Change: Tue May 6 13:29:56 CEST 2008
82b5078be2dd updated for version 7.2a
vimboss
parents: 846
diff changeset
7 " Version: 0.8
277
fe16c18c24a7 updated for version 7.0074
vimboss
parents:
diff changeset
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
fe16c18c24a7 updated for version 7.0074
vimboss
parents:
diff changeset
11 finish
fe16c18c24a7 updated for version 7.0074
vimboss
parents:
diff changeset
12 endif
fe16c18c24a7 updated for version 7.0074
vimboss
parents:
diff changeset
13
fe16c18c24a7 updated for version 7.0074
vimboss
parents:
diff changeset
14 " case is significant
fe16c18c24a7 updated for version 7.0074
vimboss
parents:
diff changeset
15 syn case ignore
fe16c18c24a7 updated for version 7.0074
vimboss
parents:
diff changeset
16 " Esterel Regions
846
db44f7b81373 updated for version 7.0f03
vimboss
parents: 839
diff changeset
17 syn region esterelModule start=/module/ end=/end module/ contains=ALLBUT,esterelModule
db44f7b81373 updated for version 7.0f03
vimboss
parents: 839
diff changeset
18 syn region esterelLoop start=/loop/ end=/end loop/ contains=ALLBUT,esterelModule
db44f7b81373 updated for version 7.0f03
vimboss
parents: 839
diff changeset
19 syn region esterelAbort start=/abort/ end=/when/ contains=ALLBUT,esterelModule
db44f7b81373 updated for version 7.0f03
vimboss
parents: 839
diff changeset
20 syn region esterelAbort start=/weak abort/ end=/when/ contains=ALLBUT,esterelModule
db44f7b81373 updated for version 7.0f03
vimboss
parents: 839
diff changeset
21 syn region esterelEvery start=/every/ end=/end every/ contains=ALLBUT,esterelModule
db44f7b81373 updated for version 7.0f03
vimboss
parents: 839
diff changeset
22 syn region esterelIf start=/if/ end=/end if/ contains=ALLBUT,esterelModule
db44f7b81373 updated for version 7.0f03
vimboss
parents: 839
diff changeset
23 syn region esterelConcurrent transparent start=/\[/ end=/\]/ contains=ALLBUT,esterelModule
db44f7b81373 updated for version 7.0f03
vimboss
parents: 839
diff changeset
24 syn region esterelIfThen start=/if/ end=/then/ oneline
277
fe16c18c24a7 updated for version 7.0074
vimboss
parents:
diff changeset
25 " Esterel Keywords
846
db44f7b81373 updated for version 7.0f03
vimboss
parents: 839
diff changeset
26 syn keyword esterelIO input output inputoutput constant
db44f7b81373 updated for version 7.0f03
vimboss
parents: 839
diff changeset
27 syn keyword esterelBoolean and or not xor xnor nor nand
1621
82b5078be2dd updated for version 7.2a
vimboss
parents: 846
diff changeset
28 syn keyword esterelExpressions mod pre
846
db44f7b81373 updated for version 7.0f03
vimboss
parents: 839
diff changeset
29 syn keyword esterelStatement nothing halt
db44f7b81373 updated for version 7.0f03
vimboss
parents: 839
diff changeset
30 syn keyword esterelStatement module signal sensor end
277
fe16c18c24a7 updated for version 7.0074
vimboss
parents:
diff changeset
31 syn keyword esterelStatement every do loop abort weak
fe16c18c24a7 updated for version 7.0074
vimboss
parents:
diff changeset
32 syn keyword esterelStatement emit present await
846
db44f7b81373 updated for version 7.0f03
vimboss
parents: 839
diff changeset
33 syn keyword esterelStatement pause when immediate
db44f7b81373 updated for version 7.0f03
vimboss
parents: 839
diff changeset
34 syn keyword esterelStatement if then else case
db44f7b81373 updated for version 7.0f03
vimboss
parents: 839
diff changeset
35 syn keyword esterelStatement var in run suspend
db44f7b81373 updated for version 7.0f03
vimboss
parents: 839
diff changeset
36 syn keyword esterelStatement repeat times combine with
db44f7b81373 updated for version 7.0f03
vimboss
parents: 839
diff changeset
37 syn keyword esterelStatement assert sustain
db44f7b81373 updated for version 7.0f03
vimboss
parents: 839
diff changeset
38 " check what it is the following
db44f7b81373 updated for version 7.0f03
vimboss
parents: 839
diff changeset
39 syn keyword esterelStatement relation
db44f7b81373 updated for version 7.0f03
vimboss
parents: 839
diff changeset
40 syn keyword esterelFunctions function procedure task
db44f7b81373 updated for version 7.0f03
vimboss
parents: 839
diff changeset
41 syn keyword esterelSysCall call trap exit exec
277
fe16c18c24a7 updated for version 7.0074
vimboss
parents:
diff changeset
42 " Esterel Types
1621
82b5078be2dd updated for version 7.2a
vimboss
parents: 846
diff changeset
43 syn keyword esterelType integer float bolean
277
fe16c18c24a7 updated for version 7.0074
vimboss
parents:
diff changeset
44 " Esterel Comment
1621
82b5078be2dd updated for version 7.2a
vimboss
parents: 846
diff changeset
45 syn match esterelComment "%.*$"
277
fe16c18c24a7 updated for version 7.0074
vimboss
parents:
diff changeset
46 " Operators and special characters
1621
82b5078be2dd updated for version 7.2a
vimboss
parents: 846
diff changeset
47 syn match esterelSpecial ":"
82b5078be2dd updated for version 7.2a
vimboss
parents: 846
diff changeset
48 syn match esterelSpecial "<="
82b5078be2dd updated for version 7.2a
vimboss
parents: 846
diff changeset
49 syn match esterelSpecial ">="
82b5078be2dd updated for version 7.2a
vimboss
parents: 846
diff changeset
50 syn match esterelSpecial "+"
82b5078be2dd updated for version 7.2a
vimboss
parents: 846
diff changeset
51 syn match esterelSpecial "-"
82b5078be2dd updated for version 7.2a
vimboss
parents: 846
diff changeset
52 syn match esterelSpecial "="
82b5078be2dd updated for version 7.2a
vimboss
parents: 846
diff changeset
53 syn match esterelSpecial ";"
82b5078be2dd updated for version 7.2a
vimboss
parents: 846
diff changeset
54 syn match esterelSpecial "/"
82b5078be2dd updated for version 7.2a
vimboss
parents: 846
diff changeset
55 syn match esterelSpecial "?"
82b5078be2dd updated for version 7.2a
vimboss
parents: 846
diff changeset
56 syn match esterelOperator "\["
82b5078be2dd updated for version 7.2a
vimboss
parents: 846
diff changeset
57 syn match esterelOperator "\]"
82b5078be2dd updated for version 7.2a
vimboss
parents: 846
diff changeset
58 syn match esterelOperator ":="
82b5078be2dd updated for version 7.2a
vimboss
parents: 846
diff changeset
59 syn match esterelOperator "||"
82b5078be2dd updated for version 7.2a
vimboss
parents: 846
diff changeset
60 syn match esterelStatement "\<\(if\|else\)\>"
82b5078be2dd updated for version 7.2a
vimboss
parents: 846
diff changeset
61 syn match esterelNone "\<else\s\+if\>$"
82b5078be2dd updated for version 7.2a
vimboss
parents: 846
diff changeset
62 syn match esterelNone "\<else\s\+if\>\s"
277
fe16c18c24a7 updated for version 7.0074
vimboss
parents:
diff changeset
63
fe16c18c24a7 updated for version 7.0074
vimboss
parents:
diff changeset
64 " Class Linking
fe16c18c24a7 updated for version 7.0074
vimboss
parents:
diff changeset
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
fe16c18c24a7 updated for version 7.0074
vimboss
parents:
diff changeset
76
fe16c18c24a7 updated for version 7.0074
vimboss
parents:
diff changeset
77
fe16c18c24a7 updated for version 7.0074
vimboss
parents:
diff changeset
78 let b:current_syntax = "esterel"