Added missing keyword unicode to Lexer

This commit is contained in:
Matheus Aguiar 2023-03-25 17:04:02 -03:00
parent 7974a3cf7c
commit 4aa310034c
3 changed files with 11 additions and 0 deletions

View File

@ -90,6 +90,7 @@ Try: 'try';
Type: 'type';
Ufixed: 'ufixed' | ('ufixed' [1-9][0-9]+ 'x' [1-9][0-9]+);
Unchecked: 'unchecked';
Unicode: 'unicode';
/**
* Sized unsigned integer types.
* uint is an alias of uint256.

View File

@ -0,0 +1,4 @@
function unicode() returns {}
// ----
// ParserError 2314: (9-16): Expected identifier but got 'ILLEGAL'

View File

@ -0,0 +1,6 @@
contract C
{
string unicode = "abc";
}
// ----
// ParserError 2314: (24-31): Expected identifier but got 'ILLEGAL'