Mercurial > vim
view runtime/syntax/rcslog.vim @ 31475:9ef91bdd1ab4 v9.0.1070
patch 9.0.1070: reading beyond array size
Commit: https://github.com/vim/vim/commit/b26461715be41653e5982e72c794294702ecded9
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Dec 17 15:35:43 2022 +0000
patch 9.0.1070: reading beyond array size
Problem: Reading beyond array size.
Solution: Only use name[0] and name[1], do not use "name" as a string.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 17 Dec 2022 16:45:03 +0100 |
parents | 46763b01cd9a |
children |
line wrap: on
line source
" Vim syntax file " Language: RCS log output " Maintainer: Joe Karthauser <joe@freebsd.org> " Last Change: 2001 May 09 " quit when a syntax file was already loaded if exists("b:current_syntax") finish endif syn match rcslogRevision "^revision.*$" syn match rcslogFile "^RCS file:.*" syn match rcslogDate "^date: .*$" " Define the default highlighting. " Only when an item doesn't have highlighting yet hi def link rcslogFile Type hi def link rcslogRevision Constant hi def link rcslogDate Identifier let b:current_syntax = "rcslog" " vim: ts=8