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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: Simula
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Haakon Riiser <hakonrk@fys.uio.no>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " URL: http://folk.uio.no/hakonrk/vim/syntax/simula.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Last Change: 2001 May 15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " No case sensitivity in Simula
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 syn match simulaComment "^%.*$" contains=simulaTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn region simulaComment start="!\|\<comment\>" end=";" contains=simulaTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " Text between the keyword 'end' and either a semicolon or one of the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 " keywords 'end', 'else', 'when' or 'otherwise' is also a comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn region simulaComment start="\<end\>"lc=3 matchgroup=Statement end=";\|\<\(end\|else\|when\|otherwise\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match simulaCharError "'.\{-2,}'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn match simulaCharacter "'.'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match simulaCharacter "'!\d\{-}!'" contains=simulaSpecialChar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match simulaString '".\{-}"' contains=simulaSpecialChar,simulaTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn keyword simulaBoolean true false
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn keyword simulaCompound begin end
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn keyword simulaConditional else if otherwise then until when
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn keyword simulaConstant none notext
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn keyword simulaFunction procedure
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn keyword simulaOperator eq eqv ge gt imp in is le lt ne new not qua
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn keyword simulaRepeat while for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn keyword simulaReserved activate after at before delay go goto label prior reactivate switch to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn keyword simulaStatement do inner inspect step this
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn keyword simulaStorageClass external hidden name protected value
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn keyword simulaStructure class
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn keyword simulaType array boolean character integer long real short text virtual
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn match simulaAssigned "\<\h\w*\s*\((.*)\)\=\s*:\(=\|-\)"me=e-2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn match simulaOperator "[&:=<>+\-*/]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn match simulaOperator "\<and\(\s\+then\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn match simulaOperator "\<or\(\s\+else\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn match simulaReferenceType "\<ref\s*(.\{-})"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn match simulaSemicolon ";"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn match simulaSpecial "[(),.]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn match simulaSpecialCharErr "!\d\{-4,}!" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn match simulaSpecialCharErr "!!" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn match simulaSpecialChar "!\d\{-}!" contains=simulaSpecialCharErr contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn match simulaTodo "xxx\+" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 " Integer number (or float without `.')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn match simulaNumber "-\=\<\d\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 " Real with optional exponent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn match simulaReal "-\=\<\d\+\(\.\d\+\)\=\(&&\=[+-]\=\d\+\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 " Real starting with a `.', optional exponent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn match simulaReal "-\=\.\d\+\(&&\=[+-]\=\d\+\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 let b:current_syntax = "simula"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 " vim: sts=4 sw=4 ts=8