Mercurial > vim
comparison runtime/syntax/uil.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 | 2eb30f341e8d |
children | 46763b01cd9a |
comparison
equal
deleted
inserted
replaced
10047:a62862410ca1 | 10048:43efa4f5a8ea |
---|---|
2 " Language: Motif UIL (User Interface Language) | 2 " Language: Motif UIL (User Interface Language) |
3 " Maintainer: Thomas Koehler <jean-luc@picard.franken.de> | 3 " Maintainer: Thomas Koehler <jean-luc@picard.franken.de> |
4 " Last Change: 2013 May 23 | 4 " Last Change: 2013 May 23 |
5 " URL: http://gott-gehabt.de/800_wer_wir_sind/thomas/Homepage/Computer/vim/syntax/uil.vim | 5 " URL: http://gott-gehabt.de/800_wer_wir_sind/thomas/Homepage/Computer/vim/syntax/uil.vim |
6 | 6 |
7 " Quit when a syntax file was already loaded | 7 " quit when a syntax file was already loaded |
8 if version < 600 | 8 if exists("b:current_syntax") |
9 syntax clear | |
10 elseif exists("b:current_syntax") | |
11 finish | 9 finish |
12 endif | 10 endif |
13 | 11 |
14 " A bunch of useful keywords | 12 " A bunch of useful keywords |
15 syn keyword uilType arguments callbacks color | 13 syn keyword uilType arguments callbacks color |
45 syn region uilDefine start="^#\s*\(define\>\|undef\>\)" end="$" contains=uilLineSkip,uilComment,uilString,uilCharacter,uilNumber,uilCommentError | 43 syn region uilDefine start="^#\s*\(define\>\|undef\>\)" end="$" contains=uilLineSkip,uilComment,uilString,uilCharacter,uilNumber,uilCommentError |
46 | 44 |
47 syn sync ccomment uilComment | 45 syn sync ccomment uilComment |
48 | 46 |
49 " Define the default highlighting. | 47 " Define the default highlighting. |
50 " For version 5.7 and earlier: only when not done already | 48 " Only when an item doesn't have highlighting yet |
51 " For version 5.8 and later: only when an item doesn't have highlighting yet | 49 command -nargs=+ HiLink hi def link <args> |
52 if version >= 508 || !exists("did_uil_syn_inits") | |
53 if version < 508 | |
54 let did_uil_syn_inits = 1 | |
55 command -nargs=+ HiLink hi link <args> | |
56 else | |
57 command -nargs=+ HiLink hi def link <args> | |
58 endif | |
59 | 50 |
60 " The default highlighting. | 51 " The default highlighting. |
61 HiLink uilCharacter uilString | 52 HiLink uilCharacter uilString |
62 HiLink uilSpecialCharacter uilSpecial | 53 HiLink uilSpecialCharacter uilSpecial |
63 HiLink uilNumber uilString | 54 HiLink uilNumber uilString |
64 HiLink uilCommentError uilError | 55 HiLink uilCommentError uilError |
65 HiLink uilInclude uilPreCondit | 56 HiLink uilInclude uilPreCondit |
66 HiLink uilDefine uilPreCondit | 57 HiLink uilDefine uilPreCondit |
67 HiLink uilIncluded uilString | 58 HiLink uilIncluded uilString |
68 HiLink uilSpecialFunction uilRessource | 59 HiLink uilSpecialFunction uilRessource |
69 HiLink uilRessource Identifier | 60 HiLink uilRessource Identifier |
70 HiLink uilSpecialStatement Keyword | 61 HiLink uilSpecialStatement Keyword |
71 HiLink uilError Error | 62 HiLink uilError Error |
72 HiLink uilPreCondit PreCondit | 63 HiLink uilPreCondit PreCondit |
73 HiLink uilType Type | 64 HiLink uilType Type |
74 HiLink uilString String | 65 HiLink uilString String |
75 HiLink uilComment Comment | 66 HiLink uilComment Comment |
76 HiLink uilSpecial Special | 67 HiLink uilSpecial Special |
77 HiLink uilTodo Todo | 68 HiLink uilTodo Todo |
78 | 69 |
79 delcommand HiLink | 70 delcommand HiLink |
80 endif | |
81 | 71 |
82 | 72 |
83 let b:current_syntax = "uil" | 73 let b:current_syntax = "uil" |
84 | 74 |
85 " vim: ts=8 | 75 " vim: ts=8 |