### Godot version

Godot 4.0.1.stable

### System information

Windows 10, Forward+

### Issue description

Example code:

```gdscript
@warning_ignore("shadowed_global_identifier")
static func print_debug(msg: String):
```

the warning is ignored by pressing [ignore] in the warnings panel.

pressing it multiple times results in:
```gdscript
@warning_ignore("shadowed_global_identifier", "shadowed_global_identifier")
```


### Steps to reproduce

Shadowing a global function with a method of script:

```gdscript
@warning_ignore("shadowed_global_identifier")
static func print_debug(msg: String):
```


### Minimal reproduction project

```gdscript
@warning_ignore("shadowed_global_identifier")
static func print_debug(msg: String):
    pass
```
switch (mode) {
			case BRIEF:
				p_brief += _process_doc_line(doc_line, p_brief, space_prefix, state);
				break;
			case DESC:
				p_desc += _process_doc_line(doc_line, p_desc, space_prefix, state);
				break;
			case TUTORIALS:
				p_tutorials.append(Pair<String, String>(title, link));
				break;
			case DONE:
				break;
		}
	}
	if (current_class->members.size() > 0) {
		const ClassNode::Member &m = current_class->members[0];
		int first_member_line = m.get_line();
		if (first_member_line == line) {
			p_brief = "";
			p_desc = "";
			p_tutorials.clear();
		}
	}
}
#endif 
GDScriptParser::ParseRule *GDScriptParser::get_rule(GDScriptTokenizer::Token::Type p_token_type) {
	
	
	
	static ParseRule rules[] = {