projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d03ac0f
)
glsl: Fix lexer rule for ^=
author
Chad Versace
<chad.versace@intel.com>
Fri, 15 Oct 2010 21:44:28 +0000
(14:44 -0700)
committer
Ian 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
patch
|
blob
|
history
diff --git
a/src/glsl/glsl_lexer.lpp
b/src/glsl/glsl_lexer.lpp
index c0778a656a3700882e1e3c4d986bf3112de8addf..f690c4728b5bcdd97c4866d8f1afda48db6b82bd 100644
(file)
--- a/
src/glsl/glsl_lexer.lpp
+++ b/
src/glsl/glsl_lexer.lpp
@@
-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;