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 07a3c2b..ab8de90 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
                                ;;