### Godot version

v4.0.stable.official [92bee43ad]

### System information

Windows 10

### Issue description

This Godot 3 line

```gdscript
assert(r.hash() == {"a":1, "b":2}.hash())
```

was converted to this:

```gdscript
assert(r.hash() == {"a":1) #,"b":2}.hash())
```

For some reason `) #` is added after `1`.

### Steps to reproduce

Just converting Godot 3 project containing the line to Godot 4.

### Minimal reproduction project

N/A
int start = line.find("sort_custom(");
		int end = get_end_parenthesis(line.substr(start)) + 1;
		if (end > -1) {
			Vector<String> parts = parse_arguments(line.substr(start, end));
			if (parts.size() == 2) {
				line = line.substr(0, start) + "sort_custom(Callable(" + parts[0] + ", " + parts[1] + "))" + line.substr(end + start);
			}
		}
	}
	// 
	if (contains_function_call(line, "list_dir_begin(")) {
		int start = line.find("list_dir_begin(");
		int end = get_end_parenthesis(line.substr(start)) + 1;
		if (end > -1) {
			line = line.substr(0, start) + "list_dir_begin() " + line.substr(end + start) + "# TODOGODOT4 fill missing arguments https://github.com/godotengine/godot/pull/40547";
		}
	}
	// 
	if (contains_function_call(line, "draw_line(")) {
		int start = line.find("draw_line(");
		int end = get_end_parenthesis(line.substr(start)) + 1;
		if (end > -1) {
			Vector<String> parts = parse_arguments(line.substr(start, end));
			if (parts.size() == 5) {
				line = line.substr(0, start) + "draw_line(" + parts[0] + ", " + parts[1] + ", " + parts[2] + ", " + parts[3] + ")" + line.substr(end + start);
			}
		}
	}
	// 
	if (line.contains("func ") && line.contains("var ")) {