awk and flagging identical patterns : <p>I'm missing something about awk pattern matching a using flags --</p>

<p>Given a file:</p>

<pre><code>2019 foo
 a
 b
 c
2019 bar
 d
 e
 f
2019 foobar
 g
 h
 i
</code></pre>

<p>I can use awk with flags and get the expected output --
<code>awk '/foo/{flag=1;next} /^[0-9]+/{flag=0} flag' file</code></p>

<pre><code> a
 b
 c
 g
 h
 i
</code></pre>

<p>But if I exclude the next to include the matched pattern, then nothing is printed.
Does awk continue from the matched line?</p>

<p>Using another syntax --
<code>awk '/foo/,/2019/' file</code></p>

<pre><code>2019 foo
2019 foobar
</code></pre>

<p>I was expecting awk to print between and including the match.
I'm definitely missing something on syntax.</p>
