Mercurial > vim
comparison runtime/syntax/hamster.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 | e63691e7c504 |
children | 46763b01cd9a |
comparison
equal
deleted
inserted
replaced
10047:a62862410ca1 | 10048:43efa4f5a8ea |
---|---|
10 " mail- and newsserver for the news/mail-client. It load faster than a normal | 10 " mail- and newsserver for the news/mail-client. It load faster than a normal |
11 " newsreader because many threads can run simultaneous. It contains scorefile | 11 " newsreader because many threads can run simultaneous. It contains scorefile |
12 " for news and mail, a build-in script language, the GUI allows translation to | 12 " for news and mail, a build-in script language, the GUI allows translation to |
13 " other languages, it can be used in a network and that's not all features... | 13 " other languages, it can be used in a network and that's not all features... |
14 " | 14 " |
15 " For version 6.x: Quit when a syntax file was already loaded | 15 " quit when a syntax file was already loaded |
16 if version < 600 | 16 if exists("b:current_syntax") |
17 syntax clear | |
18 elseif exists("b:current_syntax") | |
19 finish | 17 finish |
20 endif | 18 endif |
21 | 19 |
22 syn case ignore | 20 syn case ignore |
23 | 21 |
356 syn region hamsterHashComment start=/#/ end=/$/ contains=@Spell | 354 syn region hamsterHashComment start=/#/ end=/$/ contains=@Spell |
357 syn cluster hamsterComment contains=hamsterHashComment | 355 syn cluster hamsterComment contains=hamsterHashComment |
358 syn sync ccomment hamsterHashComment | 356 syn sync ccomment hamsterHashComment |
359 | 357 |
360 " Define the default highlighting. | 358 " Define the default highlighting. |
361 " For version 5.7 and earlier: only when not done already | 359 " Only when an item doesn't have highlighting yet |
362 " For version 5.8 and later: only when an item doesn't have highlighting yet | 360 command -nargs=+ HiLink hi def link <args> |
363 if version >= 508 || !exists("did_hamster_syn_inits") | 361 |
364 if version < 508 | 362 HiLink hamsterHashComment Comment |
365 let did_hamster_syn_inits = 1 | 363 HiLink hamsterSpecial Special |
366 command -nargs=+ HiLink hi link <args> | 364 HiLink hamsterStatement Statement |
367 else | 365 HiLink hamsterString String |
368 command -nargs=+ HiLink hi def link <args> | 366 HiLink hamsterFunction Function |
369 endif | 367 |
370 | 368 delcommand HiLink |
371 HiLink hamsterHashComment Comment | |
372 HiLink hamsterSpecial Special | |
373 HiLink hamsterStatement Statement | |
374 HiLink hamsterString String | |
375 HiLink hamsterFunction Function | |
376 | |
377 delcommand HiLink | |
378 endif | |
379 | 369 |
380 let b:current_syntax = "hamster" | 370 let b:current_syntax = "hamster" |
381 | 371 |
382 " vim:sw=4 | 372 " vim:sw=4 |