annotate contrib/vim/indent/nginx.vim @ 8697:faa3201ff351 quic

QUIC: improved setting the lost timer. Setting the timer is brought into compliance with quic-recovery-34. Now it's set from a single function ngx_quic_set_lost_timer() that takes into account both loss detection and PTO. The following issues are fixed with this change: - when in loss detection mode, discarding a context could turn off the timer forever after switching to the PTO mode - when in loss detection mode, sending a packet resulted in rescheduling the timer as if it's always in the PTO mode
author Roman Arutyunyan <arut@nginx.com>
date Fri, 12 Feb 2021 14:40:33 +0300
parents f38043bd15f5
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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#