Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
10047:a62862410ca1 | 10048:43efa4f5a8ea |
---|---|
4 " Last Change: 2001 May 10 | 4 " Last Change: 2001 May 10 |
5 | 5 |
6 " Basic things only... | 6 " Basic things only... |
7 " Based on the modula 2 syntax file | 7 " Based on the modula 2 syntax file |
8 | 8 |
9 " For version 5.x: Clear all syntax items | 9 " quit when a syntax file was already loaded |
10 " For version 6.x: Quit when a syntax file was already loaded | 10 if exists("b:current_syntax") |
11 if version < 600 | |
12 syntax clear | |
13 elseif exists("b:current_syntax") | |
14 finish | 11 finish |
15 endif | 12 endif |
16 | 13 |
17 " Modula-3 is case-sensitive | 14 " Modula-3 is case-sensitive |
18 " syn case ignore | 15 " syn case ignore |
44 " Strings | 41 " Strings |
45 syn region modula3String start=+"+ end=+"+ | 42 syn region modula3String start=+"+ end=+"+ |
46 syn region modula3String start=+'+ end=+'+ | 43 syn region modula3String start=+'+ end=+'+ |
47 | 44 |
48 " Define the default highlighting. | 45 " Define the default highlighting. |
49 " For version 5.7 and earlier: only when not done already | 46 " Only when an item doesn't have highlighting yet |
50 " For version 5.8 and later: only when an item doesn't have highlighting yet | 47 command -nargs=+ HiLink hi def link <args> |
51 if version >= 508 || !exists("did_modula3_syntax_inits") | |
52 if version < 508 | |
53 let did_modula3_syntax_inits = 1 | |
54 command -nargs=+ HiLink hi link <args> | |
55 else | |
56 command -nargs=+ HiLink hi def link <args> | |
57 endif | |
58 | 48 |
59 " The default methods for highlighting. Can be overridden later | 49 " The default methods for highlighting. Can be overridden later |
60 HiLink modula3Keyword Statement | 50 HiLink modula3Keyword Statement |
61 HiLink modula3Block PreProc | 51 HiLink modula3Block PreProc |
62 HiLink modula3Comment Comment | 52 HiLink modula3Comment Comment |
63 HiLink modula3String String | 53 HiLink modula3String String |
64 | 54 |
65 delcommand HiLink | 55 delcommand HiLink |
66 endif | |
67 | 56 |
68 let b:current_syntax = "modula3" | 57 let b:current_syntax = "modula3" |
69 | 58 |
70 "I prefer to use this... | 59 "I prefer to use this... |
71 "set ai | 60 "set ai |