Mercurial > hg > nginx-quic
annotate contrib/vim/indent/nginx.vim @ 7443:f3ff79ae31d9
Win32: properly enabled select on Windows.
Previously, select was compiled in by default, but the NGX_HAVE_SELECT
macro was not set, resulting in iocp being used by default unless
the "--with-select_module" configure option was explicitly specified.
Since the iocp module is not finished and does not work properly, this
effectively meant that the "--with-select_module" option was mandatory.
With the change NGX_HAVE_SELECT is properly set, making "--with-select_module"
optional. Accordingly, it is removed from misc/GNUmakefile win32 target.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 24 Jan 2019 21:51:00 +0300 |
parents | f38043bd15f5 |
children |
rev | line source |
---|---|
5460
f38043bd15f5
Contrib: add vim scripts to contrib/ directory.
Evan Miller <emmiller@gmail.com>
parents:
diff
changeset
|
1 if exists("b:did_indent") |
f38043bd15f5
Contrib: add vim scripts to contrib/ directory.
Evan Miller <emmiller@gmail.com>
parents:
diff
changeset
|
2 finish |
f38043bd15f5
Contrib: add vim scripts to contrib/ directory.
Evan Miller <emmiller@gmail.com>
parents:
diff
changeset
|
3 endif |
f38043bd15f5
Contrib: add vim scripts to contrib/ directory.
Evan Miller <emmiller@gmail.com>
parents:
diff
changeset
|
4 let b:did_indent = 1 |
f38043bd15f5
Contrib: add vim scripts to contrib/ directory.
Evan Miller <emmiller@gmail.com>
parents:
diff
changeset
|
5 |
f38043bd15f5
Contrib: add vim scripts to contrib/ directory.
Evan Miller <emmiller@gmail.com>
parents:
diff
changeset
|
6 setlocal indentexpr= |
f38043bd15f5
Contrib: add vim scripts to contrib/ directory.
Evan Miller <emmiller@gmail.com>
parents:
diff
changeset
|
7 |
f38043bd15f5
Contrib: add vim scripts to contrib/ directory.
Evan Miller <emmiller@gmail.com>
parents:
diff
changeset
|
8 " cindent actually works for nginx' simple file structure |
f38043bd15f5
Contrib: add vim scripts to contrib/ directory.
Evan Miller <emmiller@gmail.com>
parents:
diff
changeset
|
9 setlocal cindent |
f38043bd15f5
Contrib: add vim scripts to contrib/ directory.
Evan Miller <emmiller@gmail.com>
parents:
diff
changeset
|
10 " Just make sure that the comments are not reset as defs would be. |
f38043bd15f5
Contrib: add vim scripts to contrib/ directory.
Evan Miller <emmiller@gmail.com>
parents:
diff
changeset
|
11 setlocal cinkeys-=0# |