annotate runtime/indent/nginx.vim @ 26406:fcc57227e99b
v8.2.3734
patch 8.2.3734: Vim9: crash when no pattern match found
Commit: https://github.com/vim/vim/commit/01a4dcbceefa99696bd1ef8631c3f7ce9f6e0cc2
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Dec 4 13:15:10 2021 +0000
patch 8.2.3734: Vim9: crash when no pattern match found
Problem: Vim9: crash when no pattern match found.
Solution: Check for error.
author |
Bram Moolenaar <Bram@vim.org> |
date |
Sat, 04 Dec 2021 14:30:03 +0100 |
parents |
9c221ad9634a |
children |
6dd88e45d47d |
rev |
line source |
25880
|
1 " Vim indent file
|
|
2 " Language: nginx.conf
|
|
3 " Maintainer: Chris Aumann <me@chr4.org>
|
|
4 " Last Change: Apr 15, 2017
|
|
5
|
|
6 if exists("b:did_indent")
|
|
7 finish
|
|
8 endif
|
|
9 let b:did_indent = 1
|
|
10
|
|
11 setlocal indentexpr=
|
|
12
|
|
13 " cindent actually works for nginx' simple file structure
|
|
14 setlocal cindent
|
|
15
|
|
16 " Just make sure that the comments are not reset as defs would be.
|
|
17 setlocal cinkeys-=0#
|