Mercurial > vim
comparison runtime/syntax/lprolog.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 | d6a69271cb9a |
children | 46763b01cd9a |
comparison
equal
deleted
inserted
replaced
10047:a62862410ca1 | 10048:43efa4f5a8ea |
---|---|
5 " URL: http://www.ocaml.info/vim/syntax/lprolog.vim | 5 " URL: http://www.ocaml.info/vim/syntax/lprolog.vim |
6 " Last Change: 2006 Feb 05 | 6 " Last Change: 2006 Feb 05 |
7 " 2001 Apr 26 - Upgraded for new Vim version | 7 " 2001 Apr 26 - Upgraded for new Vim version |
8 " 2000 Jun 5 - Initial release | 8 " 2000 Jun 5 - Initial release |
9 | 9 |
10 " For version 5.x: Clear all syntax items | 10 " quit when a syntax file was already loaded |
11 " For version 6.x: Quit when a syntax file was already loaded | 11 if exists("b:current_syntax") |
12 if version < 600 | |
13 syntax clear | |
14 elseif exists("b:current_syntax") | |
15 finish | 12 finish |
16 endif | 13 endif |
17 | 14 |
18 " Lambda Prolog is case sensitive. | 15 " Lambda Prolog is case sensitive. |
19 syn case match | 16 syn case match |
94 syn sync minlines=50 | 91 syn sync minlines=50 |
95 syn sync maxlines=500 | 92 syn sync maxlines=500 |
96 | 93 |
97 | 94 |
98 " Define the default highlighting. | 95 " Define the default highlighting. |
99 " For version 5.7 and earlier: only when not done already | 96 " Only when an item doesn't have highlighting yet |
100 " For version 5.8 and later: only when an item doesn't have highlighting yet | 97 command -nargs=+ HiLink hi def link <args> |
101 if version >= 508 || !exists("did_lprolog_syntax_inits") | |
102 if version < 508 | |
103 let did_lprolog_syntax_inits = 1 | |
104 command -nargs=+ HiLink hi link <args> | |
105 else | |
106 command -nargs=+ HiLink hi def link <args> | |
107 endif | |
108 | 98 |
109 HiLink lprologComment Comment | 99 HiLink lprologComment Comment |
110 HiLink lprologTodo Todo | 100 HiLink lprologTodo Todo |
111 | 101 |
112 HiLink lprologKeyword Keyword | 102 HiLink lprologKeyword Keyword |
113 HiLink lprologSpecial Special | 103 HiLink lprologSpecial Special |
114 HiLink lprologOperator Operator | 104 HiLink lprologOperator Operator |
115 HiLink lprologIdentifier Normal | 105 HiLink lprologIdentifier Normal |
116 | 106 |
117 HiLink lprologInteger Number | 107 HiLink lprologInteger Number |
118 HiLink lprologReal Number | 108 HiLink lprologReal Number |
119 HiLink lprologString String | 109 HiLink lprologString String |
120 | 110 |
121 HiLink lprologCommentErr Error | 111 HiLink lprologCommentErr Error |
122 HiLink lprologBrackErr Error | 112 HiLink lprologBrackErr Error |
123 HiLink lprologParenErr Error | 113 HiLink lprologParenErr Error |
124 | 114 |
125 HiLink lprologModuleName Special | 115 HiLink lprologModuleName Special |
126 HiLink lprologTypeName Identifier | 116 HiLink lprologTypeName Identifier |
127 | 117 |
128 HiLink lprologVariable Keyword | 118 HiLink lprologVariable Keyword |
129 HiLink lprologAtom Normal | 119 HiLink lprologAtom Normal |
130 HiLink lprologClause Type | 120 HiLink lprologClause Type |
131 | 121 |
132 delcommand HiLink | 122 delcommand HiLink |
133 endif | |
134 | 123 |
135 let b:current_syntax = "lprolog" | 124 let b:current_syntax = "lprolog" |
136 | 125 |
137 " vim: ts=8 | 126 " vim: ts=8 |