Skip to content

Commit

Permalink
Merge pull request #10 from remollemo/support-address-payable
Browse files Browse the repository at this point in the history
Support address payable
  • Loading branch information
cag committed Dec 16, 2020
2 parents b004b6e + 8e09c90 commit 12ecf38
Show file tree
Hide file tree
Showing 6 changed files with 781 additions and 738 deletions.
8 changes: 4 additions & 4 deletions sphinxcontrib/soliditydomain/Solidity.g4
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ parameterList
: '(' ( parameter (',' parameter)* )? ')' ;

parameter
: typeName storageLocation? identifier? ;
: typeName PayableKeyword? storageLocation? identifier? ;

eventParameterList
: '(' ( eventParameter (',' eventParameter)* )? ')' ;
Expand All @@ -118,10 +118,10 @@ functionTypeParameterList
: '(' ( functionTypeParameter (',' functionTypeParameter)* )? ')' ;

functionTypeParameter
: typeName storageLocation? ;
: typeName PayableKeyword? storageLocation? ;

variableDeclaration
: typeName storageLocation? identifier ;
: typeName PayableKeyword? storageLocation? identifier ;

typeName
: elementaryTypeName
Expand Down Expand Up @@ -454,4 +454,4 @@ COMMENT
: '/*' .*? '*/' -> channel(HIDDEN) ;
LINE_COMMENT
: '//' ~[\r\n]* -> channel(HIDDEN) ;
: '//' ~[\r\n]* -> channel(HIDDEN) ;
2 changes: 1 addition & 1 deletion sphinxcontrib/soliditydomain/Solidity.interp

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions sphinxcontrib/soliditydomain/SolidityLexer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated from Solidity.g4 by ANTLR 4.7.1
# Generated from Solidity.g4 by ANTLR 4.7.2
from antlr4 import *
from io import StringIO
from typing.io import TextIO
Expand Down Expand Up @@ -965,7 +965,7 @@ class SolidityLexer(Lexer):

def __init__(self, input=None, output:TextIO = sys.stdout):
super().__init__(input, output)
self.checkVersion("4.7.1")
self.checkVersion("4.7.2")
self._interp = LexerATNSimulator(self, self.atn, self.decisionsToDFA, PredictionContextCache())
self._actions = None
self._predicates = None
Expand Down
2 changes: 1 addition & 1 deletion sphinxcontrib/soliditydomain/SolidityListener.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated from Solidity.g4 by ANTLR 4.7.1
# Generated from Solidity.g4 by ANTLR 4.7.2
from antlr4 import *
if __name__ is not None and "." in __name__:
from .SolidityParser import SolidityParser
Expand Down

0 comments on commit 12ecf38

Please sign in to comment.