annotate runtime/syntax/modsim3.vim @ 31168:25f6c7f77c70 v9.0.0918

patch 9.0.0918: MS-Windows: modifier keys do not work with mouse scroll event Commit: https://github.com/vim/vim/commit/0319306f20d2a5989d1f5639a47d77cebeac2f29 Author: Christopher Plewright <chris@createng.com> Date: Tue Nov 22 12:58:27 2022 +0000 patch 9.0.0918: MS-Windows: modifier keys do not work with mouse scroll event Problem: MS-Windows: modifier keys do not work with mouse scroll events. Solution: Use K_SPECIAL instead of CSI for the modifier keys. (Christopher Plewright, closes #11587)
author Bram Moolenaar <Bram@vim.org>
date Tue, 22 Nov 2022 14:00:04 +0100
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: Modsim III, by compuware corporation (www.compuware.com)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Philipp Jocham <flip@sbox.tu-graz.ac.at>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Extension: *.mod
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Last Change: 2001 May 10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " 2001 March 24:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " - Modsim III is a registered trademark from compuware corporation
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " - made compatible with Vim 6.0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " 1999 Apr 22 : Changed modsim3Literal from region to match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 " very basic things only (based on the modula2 and c files).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
15 " 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
16 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 " syn case match " case sensitiv match is default
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 " A bunch of keywords
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn keyword modsim3Keyword ACTID ALL AND AS ASK
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn keyword modsim3Keyword BY CALL CASE CLASS CONST DIV
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn keyword modsim3Keyword DOWNTO DURATION ELSE ELSIF EXIT FALSE FIXED FOR
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn keyword modsim3Keyword FOREACH FORWARD IF IN INHERITED INOUT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn keyword modsim3Keyword INTERRUPT LOOP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn keyword modsim3Keyword MOD MONITOR NEWVALUE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn keyword modsim3Keyword NONMODSIM NOT OBJECT OF ON OR ORIGINAL OTHERWISE OUT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn keyword modsim3Keyword OVERRIDE PRIVATE PROTO REPEAT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn keyword modsim3Keyword RETURN REVERSED SELF STRERR TELL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn keyword modsim3Keyword TERMINATE THISMETHOD TO TRUE TYPE UNTIL VALUE VAR
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn keyword modsim3Keyword WAIT WAITFOR WHEN WHILE WITH
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 " Builtin functions and procedures
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn keyword modsim3Builtin ABS ACTIVATE ADDMONITOR CAP CHARTOSTR CHR CLONE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn keyword modsim3Builtin DEACTIVATE DEC DISPOSE FLOAT GETMONITOR HIGH INC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn keyword modsim3Builtin INPUT INSERT INTTOSTR ISANCESTOR LOW LOWER MAX MAXOF
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn keyword modsim3Builtin MIN MINOF NEW OBJTYPEID OBJTYPENAME OBJVARID ODD
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn keyword modsim3Builtin ONERROR ONEXIT ORD OUTPUT POSITION PRINT REALTOSTR
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn keyword modsim3Builtin REPLACE REMOVEMONITOR ROUND SCHAR SIZEOF SPRINT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn keyword modsim3Builtin STRLEN STRTOCHAR STRTOINT STRTOREAL SUBSTR TRUNC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn keyword modsim3Builtin UPDATEVALUE UPPER VAL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn keyword modsim3BuiltinNoParen HALT TRACE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 " Special keywords
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn keyword modsim3Block PROCEDURE METHOD MODULE MAIN DEFINITION IMPLEMENTATION
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn keyword modsim3Block BEGIN END
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn keyword modsim3Include IMPORT FROM
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn keyword modsim3Type ANYARRAY ANYOBJ ANYREC ARRAY BOOLEAN CHAR INTEGER
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn keyword modsim3Type LMONITORED LRMONITORED NILARRAY NILOBJ NILREC REAL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn keyword modsim3Type RECORD RMONITOR RMONITORED STRING
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 " catch errros cause by wrong parenthesis
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 " slight problem with "( *)" or "(* )". Hints?
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn region modsim3Paren transparent start='(' end=')' contains=ALLBUT,modsim3ParenError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn match modsim3ParenError ")"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 " Comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn region modsim3Comment1 start="{" end="}" contains=modsim3Comment1,modsim3Comment2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn region modsim3Comment2 start="(\*" end="\*)" contains=modsim3Comment1,modsim3Comment2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 " highlighting is wrong for constructs like "{ (* } *)",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 " which are allowed in Modsim III, but
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 " I think something like that shouldn't be used anyway.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 " Strings
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 syn region modsim3String start=+"+ end=+"+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 " Literals
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 "syn region modsim3Literal start=+'+ end=+'+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 syn match modsim3Literal "'[^']'\|''''"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 " Define the default highlighting.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
78 " Only when an item doesn't have highlighting yet
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
80 " The default methods for highlighting. Can be overridden later
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
81 hi def link modsim3Keyword Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
82 hi def link modsim3Block Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
83 hi def link modsim3Comment1 Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
84 hi def link modsim3Comment2 Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
85 hi def link modsim3String String
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
86 hi def link modsim3Literal Character
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
87 hi def link modsim3Include Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
88 hi def link modsim3Type Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
89 hi def link modsim3ParenError Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
90 hi def link modsim3Builtin Function
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
91 hi def link modsim3BuiltinNoParen Function
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 let b:current_syntax = "modsim3"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 " vim: ts=8 sw=2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97