summaryrefslogtreecommitdiff
path: root/tests/servers
diff options
context:
space:
mode:
authorYuri Roubinsky <chaosus89@gmail.com>2021-11-30 23:28:35 +0300
committerYuri Roubinsky <chaosus89@gmail.com>2021-12-01 11:52:25 +0300
commit5ba93619fae4eedca092bd7e4551b9034d725ff4 (patch)
tree3ef72ca65c8d243298a681d5be5eb3d99ff15e63 /tests/servers
parente223a9c12905b99bb1fe93a56ae634b34eadd359 (diff)
Allow using empty statements in the shader, added formatting warning
Diffstat (limited to 'tests/servers')
-rw-r--r--tests/servers/test_shader_lang.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/servers/test_shader_lang.cpp b/tests/servers/test_shader_lang.cpp
index 0591bf6adf..f4a32c6723 100644
--- a/tests/servers/test_shader_lang.cpp
+++ b/tests/servers/test_shader_lang.cpp
@@ -261,6 +261,8 @@ static String dump_node_code(SL::Node *p_node, int p_level) {
}
code += ")";
break;
+ case SL::OP_EMPTY:
+ break;
default: {
code = "(" + dump_node_code(onode->arguments[0], p_level) + _opstr(onode->op) + dump_node_code(onode->arguments[1], p_level) + ")";
break;