annotate runtime/syntax/modula3.vim @ 3995:c2ea289a5b7f

Added tag v7-3-752 for changeset ed936effb1f3
author Bram Moolenaar <bram@vim.org>
date Wed, 05 Dec 2012 19:00:06 +0100
parents 3fc0f57ecb91
children 43efa4f5a8ea
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: Modula-3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Timo Pedersen <dat97tpe@ludat.lth.se>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Last Change: 2001 May 10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " Basic things only...
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " Based on the modula 2 syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " Modula-3 is case-sensitive
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 " Modula-3 keywords
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn keyword modula3Keyword ABS ADDRES ADR ADRSIZE AND ANY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn keyword modula3Keyword ARRAY AS BITS BITSIZE BOOLEAN BRANDED BY BYTESIZE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn keyword modula3Keyword CARDINAL CASE CEILING CHAR CONST DEC DEFINITION
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn keyword modula3Keyword DISPOSE DIV
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn keyword modula3Keyword EVAL EXIT EXCEPT EXCEPTION
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn keyword modula3Keyword EXIT EXPORTS EXTENDED FALSE FINALLY FIRST FLOAT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn keyword modula3Keyword FLOOR FROM GENERIC IMPORT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn keyword modula3Keyword IN INC INTEGER ISTYPE LAST LOCK
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn keyword modula3Keyword LONGREAL LOOPHOLE MAX METHOD MIN MOD MUTEX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn keyword modula3Keyword NARROW NEW NIL NOT NULL NUMBER OF OR ORD RAISE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn keyword modula3Keyword RAISES READONLY REAL RECORD REF REFANY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn keyword modula3Keyword RETURN ROOT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn keyword modula3Keyword ROUND SET SUBARRAY TEXT TRUE TRUNC TRY TYPE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn keyword modula3Keyword TYPECASE TYPECODE UNSAFE UNTRACED VAL VALUE VAR WITH
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 " Special keywords, block delimiters etc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn keyword modula3Block PROCEDURE FUNCTION MODULE INTERFACE REPEAT THEN
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn keyword modula3Block BEGIN END OBJECT METHODS OVERRIDES RECORD REVEAL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn keyword modula3Block WHILE UNTIL DO TO IF FOR ELSIF ELSE LOOP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 " Comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn region modula3Comment start="(\*" end="\*)"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 " Strings
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn region modula3String start=+"+ end=+"+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn region modula3String start=+'+ end=+'+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 if version >= 508 || !exists("did_modula3_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 let did_modula3_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 " The default methods for highlighting. Can be overridden later
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 HiLink modula3Keyword Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 HiLink modula3Block PreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 HiLink modula3Comment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 HiLink modula3String String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 let b:current_syntax = "modula3"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 "I prefer to use this...
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 "set ai
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 "vim: ts=8