Mercurial > vim
annotate runtime/syntax/simula.vim @ 24735:e5beb841778d v8.2.2906
patch 8.2.2906: ASAN reports errors for test_startup
Commit: https://github.com/vim/vim/commit/a5787c3742b43a8e662045a4e38c7a6ba957acbf
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat May 29 22:25:17 2021 +0200
patch 8.2.2906: ASAN reports errors for test_startup
Problem: ASAN reports errors for test_startup for unknown reasons.
Solution: Temporarily disable the new test.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 29 May 2021 22:30:04 +0200 |
parents | 46763b01cd9a |
children |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: Simula | |
3 " Maintainer: Haakon Riiser <hakonrk@fys.uio.no> | |
4 " URL: http://folk.uio.no/hakonrk/vim/syntax/simula.vim | |
5 " Last Change: 2001 May 15 | |
6 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
7 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
8 if exists("b:current_syntax") |
7 | 9 finish |
10 endif | |
11 | |
12 " No case sensitivity in Simula | |
13 syn case ignore | |
14 | |
15 syn match simulaComment "^%.*$" contains=simulaTodo | |
16 syn region simulaComment start="!\|\<comment\>" end=";" contains=simulaTodo | |
17 | |
18 " Text between the keyword 'end' and either a semicolon or one of the | |
19 " keywords 'end', 'else', 'when' or 'otherwise' is also a comment | |
20 syn region simulaComment start="\<end\>"lc=3 matchgroup=Statement end=";\|\<\(end\|else\|when\|otherwise\)\>" | |
21 | |
22 syn match simulaCharError "'.\{-2,}'" | |
23 syn match simulaCharacter "'.'" | |
24 syn match simulaCharacter "'!\d\{-}!'" contains=simulaSpecialChar | |
25 syn match simulaString '".\{-}"' contains=simulaSpecialChar,simulaTodo | |
26 | |
27 syn keyword simulaBoolean true false | |
28 syn keyword simulaCompound begin end | |
29 syn keyword simulaConditional else if otherwise then until when | |
30 syn keyword simulaConstant none notext | |
31 syn keyword simulaFunction procedure | |
32 syn keyword simulaOperator eq eqv ge gt imp in is le lt ne new not qua | |
33 syn keyword simulaRepeat while for | |
34 syn keyword simulaReserved activate after at before delay go goto label prior reactivate switch to | |
35 syn keyword simulaStatement do inner inspect step this | |
36 syn keyword simulaStorageClass external hidden name protected value | |
37 syn keyword simulaStructure class | |
38 syn keyword simulaType array boolean character integer long real short text virtual | |
39 syn match simulaAssigned "\<\h\w*\s*\((.*)\)\=\s*:\(=\|-\)"me=e-2 | |
40 syn match simulaOperator "[&:=<>+\-*/]" | |
41 syn match simulaOperator "\<and\(\s\+then\)\=\>" | |
42 syn match simulaOperator "\<or\(\s\+else\)\=\>" | |
43 syn match simulaReferenceType "\<ref\s*(.\{-})" | |
44 syn match simulaSemicolon ";" | |
45 syn match simulaSpecial "[(),.]" | |
46 syn match simulaSpecialCharErr "!\d\{-4,}!" contained | |
47 syn match simulaSpecialCharErr "!!" contained | |
48 syn match simulaSpecialChar "!\d\{-}!" contains=simulaSpecialCharErr contained | |
49 syn match simulaTodo "xxx\+" contained | |
50 | |
51 " Integer number (or float without `.') | |
52 syn match simulaNumber "-\=\<\d\+\>" | |
53 " Real with optional exponent | |
54 syn match simulaReal "-\=\<\d\+\(\.\d\+\)\=\(&&\=[+-]\=\d\+\)\=\>" | |
55 " Real starting with a `.', optional exponent | |
56 syn match simulaReal "-\=\.\d\+\(&&\=[+-]\=\d\+\)\=\>" | |
57 | |
58 | |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
59 hi def link simulaAssigned Identifier |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
60 hi def link simulaBoolean Boolean |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
61 hi def link simulaCharacter Character |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
62 hi def link simulaCharError Error |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
63 hi def link simulaComment Comment |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
64 hi def link simulaCompound Statement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
65 hi def link simulaConditional Conditional |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
66 hi def link simulaConstant Constant |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
67 hi def link simulaFunction Function |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
68 hi def link simulaNumber Number |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
69 hi def link simulaOperator Operator |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
70 hi def link simulaReal Float |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
71 hi def link simulaReferenceType Type |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
72 hi def link simulaRepeat Repeat |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
73 hi def link simulaReserved Error |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
74 hi def link simulaSemicolon Statement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
75 hi def link simulaSpecial Special |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
76 hi def link simulaSpecialChar SpecialChar |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
77 hi def link simulaSpecialCharErr Error |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
78 hi def link simulaStatement Statement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
79 hi def link simulaStorageClass StorageClass |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
80 hi def link simulaString String |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
81 hi def link simulaStructure Structure |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
82 hi def link simulaTodo Todo |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
83 hi def link simulaType Type |
7 | 84 |
85 | |
86 let b:current_syntax = "simula" | |
87 " vim: sts=4 sw=4 ts=8 |