diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-11-23 20:12:34 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-11-23 20:12:34 +0800 |
commit | 2c3c5ad7c9ca3760319b7086ea9b1ac396950e4f (patch) | |
tree | 51440c3c1fe95a56d7e307a4a88418a8f843058f /docs | |
parent | 3f8c14350655783fe762cf3fe9535afccc45e18b (diff) | |
download | dexon-solidity-2c3c5ad7c9ca3760319b7086ea9b1ac396950e4f.tar.gz dexon-solidity-2c3c5ad7c9ca3760319b7086ea9b1ac396950e4f.tar.zst dexon-solidity-2c3c5ad7c9ca3760319b7086ea9b1ac396950e4f.zip |
Move reserved keywords from SolidityLexer
Diffstat (limited to 'docs')
-rw-r--r-- | docs/utils/SolidityLexer.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/utils/SolidityLexer.py b/docs/utils/SolidityLexer.py index a828146f..fe5b7798 100644 --- a/docs/utils/SolidityLexer.py +++ b/docs/utils/SolidityLexer.py @@ -56,7 +56,7 @@ class SolidityLexer(RegexLexer): (r'[})\].]', Punctuation), (r'(anonymous|as|assembly|break|constant|continue|do|delete|else|external|for|hex|if|' r'indexed|internal|import|is|mapping|memory|new|payable|public|pragma|' - r'private|return|returns|storage|super|this|throw|using|while)\b', Keyword, 'slashstartsregex'), + r'private|pure|return|returns|storage|super|this|throw|using|view|while)\b', Keyword, 'slashstartsregex'), (r'(var|function|event|modifier|struct|enum|contract|library|interface)\b', Keyword.Declaration, 'slashstartsregex'), (r'(bytes|string|address|uint|int|bool|byte|' + '|'.join( @@ -67,8 +67,8 @@ class SolidityLexer(RegexLexer): ['fixed%dx%d' % ((i), (j + 8)) for i in range(0, 256, 8) for j in range(0, 256 - i, 8)] ) + r')\b', Keyword.Type, 'slashstartsregex'), (r'(wei|szabo|finney|ether|seconds|minutes|hours|days|weeks|years)\b', Keyword.Type, 'slashstartsregex'), - (r'(abstract|after|case|catch|default|final|in|inline|interface|let|match|' - r'null|of|pure|relocatable|static|switch|try|type|typeof|view)\b', Keyword.Reserved), + (r'(abstract|after|case|catch|default|final|in|inline|let|match|' + r'null|of|relocatable|static|switch|try|type|typeof)\b', Keyword.Reserved), (r'(true|false)\b', Keyword.Constant), (r'(block|msg|tx|now|suicide|selfdestruct|addmod|mulmod|sha3|keccak256|log[0-4]|' r'sha256|ecrecover|ripemd160|assert|revert|require)', Name.Builtin), |