Fix ^= operator in shaders
This commit is contained in:
parent
144e3cd31f
commit
de9205f72d
1 changed files with 4 additions and 0 deletions
|
@ -445,6 +445,10 @@ ShaderLanguage::Token ShaderLanguage::_get_token() {
|
||||||
case ':':
|
case ':':
|
||||||
return _make_token(TK_COLON);
|
return _make_token(TK_COLON);
|
||||||
case '^':
|
case '^':
|
||||||
|
if (GETCHAR(0) == '=') {
|
||||||
|
char_idx++;
|
||||||
|
return _make_token(TK_OP_ASSIGN_BIT_XOR);
|
||||||
|
}
|
||||||
return _make_token(TK_OP_BIT_XOR);
|
return _make_token(TK_OP_BIT_XOR);
|
||||||
case '~':
|
case '~':
|
||||||
return _make_token(TK_OP_BIT_INVERT);
|
return _make_token(TK_OP_BIT_INVERT);
|
||||||
|
|
Loading…
Reference in a new issue