]> git.rm.cloudns.org Git - xonotic/xonotic-maps.pk3dir.git/commitdiff
shader-audit: detect broken nesting of braces
authorRudolf Polzer <divVerent@xonotic.org>
Tue, 12 Apr 2011 09:29:01 +0000 (11:29 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Tue, 12 Apr 2011 09:29:01 +0000 (11:29 +0200)
scripts/shader-audit.sh

index 07a3c2bff9fcd78f1b055aa5e6f7edd55093d5bc..ab8de9070307869da062163a12479301c54da711 100755 (executable)
@@ -211,6 +211,9 @@ parse_shaderstage()
                                        use_texture "$parsing_shader" "`normalize "$X"`" animmap
                                done
                                ;;
+                       '{')
+                               echo "(EE) brace nesting error in $parsing_shader"; seterror
+                               ;;
                        '}')
                                break
                                ;;