Mercurial > vim
view runtime/syntax/gemtext.vim @ 25786:ec62e0764ffa v8.2.3428
patch 8.2.3428: using freed memory when replacing
Commit: https://github.com/vim/vim/commit/35a9a00afcb20897d462a766793ff45534810dc3
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 11 21:14:20 2021 +0200
patch 8.2.3428: using freed memory when replacing
Problem: Using freed memory when replacing. (Dhiraj Mishra)
Solution: Get the line pointer after calling ins_copychar().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 11 Sep 2021 21:15:03 +0200 |
parents | d4faa2c5211b |
children |
line wrap: on
line source
" Vim syntax file " Language: Gemtext markup language " Maintainer: Suneel Freimuth <suneelfreimuth1@gmail.com> " Latest Revision: 2020-11-21 " Filenames: *.gmi if exists('b:current_syntax') finish endif syntax match Heading /^#\{1,3}.\+$/ syntax match List /^\* / syntax match LinkURL /^=>\s*\S\+/ syntax match Quote /^>.\+/ syntax region Preformatted start=/^```/ end=/```/ highlight default link Heading Special highlight default link List Statement highlight default link LinkURL Underlined highlight default link Quote Constant highlight default link Preformatted Identifier let b:current_syntax = 'gemtext'