glsl: Fix lexer rule for ^=
authorChad Versace <chad.versace@intel.com>
Fri, 15 Oct 2010 21:44:28 +0000 (14:44 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 19 Oct 2010 20:17:33 +0000 (13:17 -0700)
The caret is a special character, and needs to be quoted or escaped.

src/glsl/glsl_lexer.lpp

index c0778a656a3700882e1e3c4d986bf3112de8addf..f690c4728b5bcdd97c4866d8f1afda48db6b82bd 100644 (file)
@@ -250,7 +250,7 @@ layout              {
 \<\<=          return LEFT_ASSIGN;
 >>=            return RIGHT_ASSIGN;
 &=             return AND_ASSIGN;
-^=             return XOR_ASSIGN;
+"^="           return XOR_ASSIGN;
 \|=            return OR_ASSIGN;
 -=             return SUB_ASSIGN;