Exclude incorrect completion options for render_mode
in shaders
This commit is contained in:
parent
fb10f45efe
commit
719741b0eb
1 changed files with 6 additions and 0 deletions
|
@ -8027,6 +8027,9 @@ Error ShaderLanguage::_parse_shader(const HashMap<StringName, FunctionInfo> &p_f
|
||||||
while (tk.type != TK_EOF) {
|
while (tk.type != TK_EOF) {
|
||||||
switch (tk.type) {
|
switch (tk.type) {
|
||||||
case TK_RENDER_MODE: {
|
case TK_RENDER_MODE: {
|
||||||
|
#ifdef DEBUG_ENABLED
|
||||||
|
keyword_completion_context = CF_UNSPECIFIED;
|
||||||
|
#endif // DEBUG_ENABLED
|
||||||
while (true) {
|
while (true) {
|
||||||
StringName mode;
|
StringName mode;
|
||||||
_get_completable_identifier(nullptr, COMPLETION_RENDER_MODE, mode);
|
_get_completable_identifier(nullptr, COMPLETION_RENDER_MODE, mode);
|
||||||
|
@ -8114,6 +8117,9 @@ Error ShaderLanguage::_parse_shader(const HashMap<StringName, FunctionInfo> &p_f
|
||||||
return ERR_PARSE_ERROR;
|
return ERR_PARSE_ERROR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#ifdef DEBUG_ENABLED
|
||||||
|
keyword_completion_context = CF_GLOBAL_SPACE;
|
||||||
|
#endif // DEBUG_ENABLED
|
||||||
} break;
|
} break;
|
||||||
case TK_STRUCT: {
|
case TK_STRUCT: {
|
||||||
ShaderNode::Struct st;
|
ShaderNode::Struct st;
|
||||||
|
|
Loading…
Reference in a new issue