Fix some missing operators not getting parsed properly. Fixed field access type checking with depth more than 1.
This commit is contained in:
6
Test.jai
6
Test.jai
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user