mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add exponential notation to numbers in SolidityLexer
This commit is contained in:
parent
2c3c5ad7c9
commit
dcd55c5005
@ -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),
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user