Mercurial > vim
annotate runtime/syntax/libao.vim @ 29208:b8dc0a76911e v8.2.5123
patch 8.2.5123: using invalid index when looking for spell suggestions
Commit: https://github.com/vim/vim/commit/156d3911952d73b03d7420dc3540215247db0fe8
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jun 18 14:09:08 2022 +0100
patch 8.2.5123: using invalid index when looking for spell suggestions
Problem: Using invalid index when looking for spell suggestions.
Solution: Do not decrement the index when it is zero.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 18 Jun 2022 15:15:04 +0200 |
parents | 1218c5353e2b |
children |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
11062 | 2 " Language: libao.conf(5) configuration file |
3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se> | |
4 " Latest Revision: 2006-04-19 | |
7 | 5 |
375 | 6 if exists("b:current_syntax") |
7 | 7 finish |
8 endif | |
9 | |
375 | 10 let s:cpo_save = &cpo |
11 set cpo&vim | |
7 | 12 |
375 | 13 syn keyword libaoTodo contained TODO FIXME XXX NOTE |
7 | 14 |
389 | 15 syn region libaoComment display oneline start='^\s*#' end='$' |
375 | 16 \ contains=libaoTodo,@Spell |
7 | 17 |
375 | 18 syn keyword libaoKeyword default_driver |
7 | 19 |
375 | 20 hi def link libaoTodo Todo |
21 hi def link libaoComment Comment | |
22 hi def link libaoKeyword Keyword | |
7 | 23 |
24 let b:current_syntax = "libao" | |
25 | |
375 | 26 let &cpo = s:cpo_save |
27 unlet s:cpo_save |