### Godot version

v4.0.beta13.official [caacade56]

### System information

Windows 8.1

### Issue description

The `Unreachable code (statement after return) in function 'function_name()'` warning is given for functions that do not have unreachable code. The same code does not give this warning in v3.5.stable.official [991bb6ac7].

### Steps to reproduce

```
func warning(i: int) -> void:
  if i == 0:
    pass
  elif i == 1:
    return
  else:
    return
  print("yeah")
```

Removing either the `elif` or the `else` removes the warning.

### Minimal reproduction project

N/A; code in reproduction steps can be placed in any blank gdscript file to trigger the error.
}
				if (colon_pos == stripped_line.length() || stripped_line[colon_pos++] != ':') {
					continue; 
				}
				title = stripped_line.substr(open_bracket_pos, close_bracket_pos - open_bracket_pos).strip_edges();
				link = stripped_line.substr(colon_pos).strip_edges();
			}
			mode = TUTORIALS;
			in_codeblock = false;
		} else if (stripped_line.is_empty()) {
			continue;
		} else {
			
			if (mode == TUTORIALS) {
				mode = DONE;
			}
			in_codeblock = _in_codeblock(doc_line, in_codeblock, &codeblock_begins);
		}
		if (in_codeblock) {
			int i = 0;
			for (; i < codeblock_begins; i++) {
				if (doc_line[i] != ' ') {
					break;
				}
			}
			doc_line = doc_line.substr(i);
		} else {
			doc_line = stripped_line;
		}
		String line_join = (in_codeblock) ? "\n" : " ";