Fix some missing operators not getting parsed properly. Fixed field access type checking with depth more than 1.

This commit is contained in:
2025-01-22 22:30:06 +01:00
parent 42c5baa846
commit 8ce8651d6b
5 changed files with 61 additions and 14 deletions

View File

@@ -722,7 +722,8 @@ main :: () {
} else if arg == "-compile" {
current_suite.test_cases[cases - 1].stage_flags |= .Compile;
} else if contains(arg, ".") {
split_path := split(arg, ".");
path_split := split(arg, "\\");
split_path := split(path_split[path_split.count - 1], ".");
extension := split_path[1];
if extension == SHADER_EXTENSION {
path := copy_string(arg);
@@ -737,7 +738,8 @@ main :: () {
}
case .None; {
if contains(arg, ".") {
split_path := split(arg, ".");
path_split := split(arg, "\\");
split_path := split(path_split[path_split.count - 1], ".");
extension := split_path[1];
if extension == SHADER_EXTENSION {