aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-11-23 20:13:00 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-11-23 20:13:00 +0800
commitdcd55c5005468808607ebd92d84124c8949d9d17 (patch)
tree024f8f2c4fee71f1d77b02246d8bfd2a09727f72
parent2c3c5ad7c9ca3760319b7086ea9b1ac396950e4f (diff)
downloaddexon-solidity-dcd55c5005468808607ebd92d84124c8949d9d17.tar.gz
dexon-solidity-dcd55c5005468808607ebd92d84124c8949d9d17.tar.zst
dexon-solidity-dcd55c5005468808607ebd92d84124c8949d9d17.zip
Add exponential notation to numbers in SolidityLexer
-rw-r--r--docs/utils/SolidityLexer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/utils/SolidityLexer.py b/docs/utils/SolidityLexer.py
index fe5b7798..50f51cf4 100644
--- a/docs/utils/SolidityLexer.py
+++ b/docs/utils/SolidityLexer.py
@@ -73,9 +73,9 @@ class SolidityLexer(RegexLexer):
(r'(block|msg|tx|now|suicide|selfdestruct|addmod|mulmod|sha3|keccak256|log[0-4]|'
r'sha256|ecrecover|ripemd160|assert|revert|require)', Name.Builtin),
(r'[$a-zA-Z_][a-zA-Z0-9_]*', Name.Other),
- (r'[0-9][0-9]*\.[0-9]+([eE][0-9]+)?[fd]?', Number.Float),
+ (r'[0-9][0-9]*\.[0-9]+([eE][0-9]+)?', Number.Float),
(r'0x[0-9a-fA-F]+', Number.Hex),
- (r'[0-9]+', Number.Integer),
+ (r'[0-9]+([eE][0-9]+)?', Number.Integer),
(r'"(\\\\|\\"|[^"])*"', String.Double),
(r"'(\\\\|\\'|[^'])*'", String.Single),
]