Mercurial > vim
annotate runtime/syntax/rcslog.vim @ 15824:6733b8b1caf3 v8.1.0919
patch 8.1.0919: compiler warnings
commit https://github.com/vim/vim/commit/0f77d6afd506d1be4b0bef46e1d2268440e1ba88
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Feb 14 20:55:09 2019 +0100
patch 8.1.0919: compiler warnings
Problem: Compiler warnings.
Solution: Add type casts. (Mike Williams)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 14 Feb 2019 21:00:06 +0100 |
parents | 46763b01cd9a |
children |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: RCS log output | |
3 " Maintainer: Joe Karthauser <joe@freebsd.org> | |
4 " Last Change: 2001 May 09 | |
5 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
6 " 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
|
7 if exists("b:current_syntax") |
7 | 8 finish |
9 endif | |
10 | |
11 syn match rcslogRevision "^revision.*$" | |
12 syn match rcslogFile "^RCS file:.*" | |
13 syn match rcslogDate "^date: .*$" | |
14 | |
15 " Define the default highlighting. | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
16 " Only when an item doesn't have highlighting yet |
7 | 17 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
18 hi def link rcslogFile Type |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
19 hi def link rcslogRevision Constant |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
20 hi def link rcslogDate Identifier |
7 | 21 |
22 | |
23 let b:current_syntax = "rcslog" | |
24 | |
25 " vim: ts=8 |