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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
25880
9c221ad9634a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
1 " Vim indent file
9c221ad9634a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2 " Language: nginx.conf
9c221ad9634a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
3 " Maintainer: Chris Aumann <me@chr4.org>
9c221ad9634a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
4 " Last Change: Apr 15, 2017
9c221ad9634a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
5
9c221ad9634a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
6 if exists("b:did_indent")
9c221ad9634a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7 finish
9c221ad9634a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8 endif
9c221ad9634a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
9 let b:did_indent = 1
9c221ad9634a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10
9c221ad9634a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11 setlocal indentexpr=
9c221ad9634a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
12
9c221ad9634a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
13 " cindent actually works for nginx' simple file structure
9c221ad9634a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
14 setlocal cindent
9c221ad9634a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
15
9c221ad9634a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
16 " Just make sure that the comments are not reset as defs would be.
9c221ad9634a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
17 setlocal cinkeys-=0#