Mercurial > vim
annotate runtime/syntax/modula3.vim @ 22078:d236260c3376
Added tag v8.2.1588 for changeset 335365fcbb602f0574d42ea8f4fb1d3a59d84c21
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 04 Sep 2020 16:45:04 +0200 |
parents | 46763b01cd9a |
children | 9f41bfdbc6fc |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: Modula-3 | |
3 " Maintainer: Timo Pedersen <dat97tpe@ludat.lth.se> | |
4 " Last Change: 2001 May 10 | |
5 | |
6 " Basic things only... | |
7 " Based on the modula 2 syntax file | |
8 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
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:
7
diff
changeset
|
10 if exists("b:current_syntax") |
7 | 11 finish |
12 endif | |
13 | |
14 " Modula-3 is case-sensitive | |
15 " syn case ignore | |
16 | |
17 " Modula-3 keywords | |
18 syn keyword modula3Keyword ABS ADDRES ADR ADRSIZE AND ANY | |
19 syn keyword modula3Keyword ARRAY AS BITS BITSIZE BOOLEAN BRANDED BY BYTESIZE | |
20 syn keyword modula3Keyword CARDINAL CASE CEILING CHAR CONST DEC DEFINITION | |
21 syn keyword modula3Keyword DISPOSE DIV | |
22 syn keyword modula3Keyword EVAL EXIT EXCEPT EXCEPTION | |
23 syn keyword modula3Keyword EXIT EXPORTS EXTENDED FALSE FINALLY FIRST FLOAT | |
24 syn keyword modula3Keyword FLOOR FROM GENERIC IMPORT | |
25 syn keyword modula3Keyword IN INC INTEGER ISTYPE LAST LOCK | |
26 syn keyword modula3Keyword LONGREAL LOOPHOLE MAX METHOD MIN MOD MUTEX | |
27 syn keyword modula3Keyword NARROW NEW NIL NOT NULL NUMBER OF OR ORD RAISE | |
28 syn keyword modula3Keyword RAISES READONLY REAL RECORD REF REFANY | |
29 syn keyword modula3Keyword RETURN ROOT | |
30 syn keyword modula3Keyword ROUND SET SUBARRAY TEXT TRUE TRUNC TRY TYPE | |
31 syn keyword modula3Keyword TYPECASE TYPECODE UNSAFE UNTRACED VAL VALUE VAR WITH | |
32 | |
33 " Special keywords, block delimiters etc | |
34 syn keyword modula3Block PROCEDURE FUNCTION MODULE INTERFACE REPEAT THEN | |
35 syn keyword modula3Block BEGIN END OBJECT METHODS OVERRIDES RECORD REVEAL | |
36 syn keyword modula3Block WHILE UNTIL DO TO IF FOR ELSIF ELSE LOOP | |
37 | |
38 " Comments | |
39 syn region modula3Comment start="(\*" end="\*)" | |
40 | |
41 " Strings | |
42 syn region modula3String start=+"+ end=+"+ | |
43 syn region modula3String start=+'+ end=+'+ | |
44 | |
45 " Define the default highlighting. | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
46 " Only when an item doesn't have highlighting yet |
7 | 47 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
48 " 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
|
49 hi def link modula3Keyword Statement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
50 hi def link modula3Block PreProc |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
51 hi def link modula3Comment Comment |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
52 hi def link modula3String String |
7 | 53 |
54 | |
55 let b:current_syntax = "modula3" | |
56 | |
57 "I prefer to use this... | |
58 "set ai | |
59 "vim: ts=8 |