Fix ^= operator in shaders

This commit is contained in:
Yuri Roubinsky 2021-12-03 10:34:56 +03:00
parent 144e3cd31f
commit de9205f72d

View File

@ -445,6 +445,10 @@ ShaderLanguage::Token ShaderLanguage::_get_token() {
case ':':
return _make_token(TK_COLON);
case '^':
if (GETCHAR(0) == '=') {
char_idx++;
return _make_token(TK_OP_ASSIGN_BIT_XOR);
}
return _make_token(TK_OP_BIT_XOR);
case '~':
return _make_token(TK_OP_BIT_INVERT);