Index: src/sksl/sksl.flex |
diff --git a/src/sksl/sksl.flex b/src/sksl/sksl.flex |
index 67b48e9cb92f7fa2e9d1d0624bc1021cee69a0e4..4455f500843243b8b32bd077447d8226ca73a6b4 100644 |
--- a/src/sksl/sksl.flex |
+++ b/src/sksl/sksl.flex |
@@ -30,6 +30,8 @@ LETTER [a-zA-Z_$] |
{DIGIT}+ { return SkSL::Token::INT_LITERAL; } |
+"0x"[0-9a-fA-F]+ { return SkSL::Token::INT_LITERAL; } |
+ |
true { return SkSL::Token::TRUE_LITERAL; } |
false { return SkSL::Token::FALSE_LITERAL; } |
@@ -122,13 +124,15 @@ precision { return SkSL::Token::PRECISION; } |
"&" { return SkSL::Token::BITWISEAND; } |
+"~" { return SkSL::Token::BITWISENOT; } |
+ |
"||" { return SkSL::Token::LOGICALOR; } |
"^^" { return SkSL::Token::LOGICALXOR; } |
"&&" { return SkSL::Token::LOGICALAND; } |
-"!" { return SkSL::Token::NOT; } |
+"!" { return SkSL::Token::LOGICALNOT; } |
"?" { return SkSL::Token::QUESTION; } |