aboutsummaryrefslogtreecommitdiffstats
path: root/docs/utils
diff options
context:
space:
mode:
authorDenton Liu <liu.denton+github@gmail.com>2016-05-31 01:56:07 +0800
committerDenton Liu <liu.denton+github@gmail.com>2016-08-26 23:18:28 +0800
commitb0d9da05cf24381d9bb03ff2854d502d2e73bbdd (patch)
treee1e1a6fc8bf8ca97931f12d4bf4dde160fae4e0a /docs/utils
parent83160d56f3827fce5394339937ffc9c588a3633e (diff)
downloaddexon-solidity-b0d9da05cf24381d9bb03ff2854d502d2e73bbdd.tar.gz
dexon-solidity-b0d9da05cf24381d9bb03ff2854d502d2e73bbdd.tar.zst
dexon-solidity-b0d9da05cf24381d9bb03ff2854d502d2e73bbdd.zip
Added ufixed and fixed keywords
Diffstat (limited to 'docs/utils')
-rw-r--r--docs/utils/SolidityLexer.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/utils/SolidityLexer.py b/docs/utils/SolidityLexer.py
index d05c7b0c..b3aed74b 100644
--- a/docs/utils/SolidityLexer.py
+++ b/docs/utils/SolidityLexer.py
@@ -63,7 +63,9 @@ class SolidityLexer(RegexLexer):
'|'.join(
['uint%d' % (i + 8) for i in range(0, 256, 8)] +
['int%d' % (i + 8) for i in range(0, 256, 8)] +
- ['bytes%d' % (i + 1) for i in range(0, 32)]
+ ['bytes%d' % (i + 1) for i in range(0, 32)] +
+ ['ufixed%dx%d' % ((i), (j + 8)) for i in range(0, 256, 8) for j in range(0, 256 - i, 8)] +
+ ['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'(abstract|boolean|byte|char|class|const|debugger|double|enum|export|'
r'extends|final|float|goto|implements|int|interface|long|native|'