Mercurial > vim
annotate runtime/syntax/rcslog.vim @ 26672:3516017e5f54 v8.2.3865
patch 8.2.3865: Vim9: compiler complains about using "try" as a struct member
Commit: https://github.com/vim/vim/commit/0d807107b66e0d30d4f338c272962af5714c400e
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Dec 21 09:42:09 2021 +0000
patch 8.2.3865: Vim9: compiler complains about using "try" as a struct member
Problem: Vim9: compiler complains about using "try" as a struct member.
Solution: Rename "try" to "tryref".
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 21 Dec 2021 10:45:04 +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 |