Mercurial > vim
annotate runtime/syntax/modula3.vim @ 10048:43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 30 23:26:57 2016 +0200
Updated runtime files. Remove version checks for Vim older than 6.0.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 30 Aug 2016 23:30:09 +0200 |
parents | 3fc0f57ecb91 |
children | 46763b01cd9a |
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 |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
47 command -nargs=+ HiLink hi def link <args> |
7 | 48 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
49 " The default methods for highlighting. Can be overridden later |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
50 HiLink modula3Keyword Statement |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
51 HiLink modula3Block PreProc |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
52 HiLink modula3Comment Comment |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
53 HiLink modula3String String |
7 | 54 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
55 delcommand HiLink |
7 | 56 |
57 let b:current_syntax = "modula3" | |
58 | |
59 "I prefer to use this... | |
60 "set ai | |
61 "vim: ts=8 |