Skip to content

Commit

Permalink
Added ufixed and fixed keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
Denton-L committed Aug 26, 2016
1 parent 83160d5 commit b0d9da0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/utils/SolidityLexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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|'
Expand Down

0 comments on commit b0d9da0

Please sign in to comment.