Merge pull request #55573 from Chaosus/shader_fix_xor
This commit is contained in:
commit
8bbea2a1a2
1 changed files with 6 additions and 1 deletions
|
@ -88,7 +88,8 @@ String ShaderLanguage::get_operator_text(Operator p_op) {
|
|||
"--",
|
||||
"()",
|
||||
"construct",
|
||||
"index" };
|
||||
"index",
|
||||
"empty" };
|
||||
|
||||
return op_names[p_op];
|
||||
}
|
||||
|
@ -474,6 +475,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);
|
||||
|
|
Loading…
Reference in a new issue