Mercurial > vim
annotate runtime/syntax/modula3.vim @ 22840:7c1e2e3f2d8d v8.2.1967
patch 8.2.1967: the session file does not restore the alternate file
Commit: https://github.com/vim/vim/commit/59d8e56e048eb5d384649284fb35363931fc3697
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Nov 7 18:41:10 2020 +0100
patch 8.2.1967: the session file does not restore the alternate file
Problem: The session file does not restore the alternate file.
Solution: Add ":balt". Works like ":badd" and also sets the buffer as the
alternate file. Use it in the session file. (closes #7269,
closes #6714)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 07 Nov 2020 18:45:04 +0100 |
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 |