mesa: glsl: report 'Syntax Error' instead of 'Invalid external declaration'
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 6 Aug 2008 22:29:40 +0000 (16:29 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 6 Aug 2008 22:29:40 +0000 (16:29 -0600)
src/mesa/shader/slang/library/slang_shader.syn

index 52a792ad1792afb187f0f5af33f2452b9979ea74..4505758520a4e62766281d0acc9c8dd66a4e0860 100644 (file)
 .emtcode PARAMETER_ARRAY_NOT_PRESENT                0
 .emtcode PARAMETER_ARRAY_PRESENT                    1
 
-.errtext INVALID_EXTERNAL_DECLARATION               "2001: Invalid external declaration."
+/* INVALID_EXTERNAL_DECLARATION seems to be reported when there's */
+/* any syntax errors... */
+.errtext INVALID_EXTERNAL_DECLARATION               "2001: Syntax error."
 .errtext INVALID_OPERATOR_OVERRIDE                  "2002: Invalid operator override."
 .errtext LBRACE_EXPECTED                            "2003: '{' expected but '$err_token$' found."
 .errtext LPAREN_EXPECTED                            "2004: '(' expected but '$err_token$' found."