Skip to content

Commit 690a6f6

Browse files
authored
Merge pull request #40 from benber86/fix/struct
Fix/struct
2 parents 998d8dd + d7a3f35 commit 690a6f6

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ build-backend = "setuptools.build_meta"
3838

3939
[tool.poetry]
4040
name = "mamushi"
41-
version = "0.0.4-a1"
41+
version = "0.0.4-a2"
4242
description = "Vyper Formatter"
4343
authors = ["benny <[email protected]>"]
4444

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.0.4-a1
2+
current_version = 0.0.4-a2
33
commit = False
44
tag = True
55
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+)(?P<build>\d+))?

src/mamushi/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.0.4-a1"
1+
__version__ = "0.0.4-a2"

src/mamushi/formatting/whitespace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def whitespace(leaf: Leaf) -> str:
113113
):
114114
# no parentheses on calls, function sigs, logs and defs
115115
# except for returns
116-
if t == tokens.LPAR and prev.type not in tokens.RETURN_TYPE:
116+
if t == tokens.LPAR and prev.type not in {tokens.RETURN_TYPE}:
117117
return NO
118118

119119
if t == tokens.LSQB:

src/mamushi/parsing/grammar.lark

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module: ( DOCSTRING
1616
| transient_def
1717
| implements_def
1818
| uses_def
19-
| exports_def
19+
| export
2020
| initializes_stmt
2121
| function_def
2222
| immutable_def
@@ -122,7 +122,7 @@ interface_def: _INTERFACE_DECL NAME ":" _NEWLINE _INDENT ( interface_function _N
122122

123123
implements_def: "implements" ":" NAME
124124
uses_def: "uses" ":" NAME
125-
exports_def: "exports" ":" (attribute | tuple)
125+
export: "exports" ":" (attribute | "(" attribute ")"| tuple)
126126

127127
_INITIALIZES_DECL: "initializes"
128128
initializes_stmt: _INITIALIZES_DECL ":" initializes_list

src/mamushi/parsing/tokens.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@
182182
INTERFACE_DEF = "interface_def"
183183
IMPLEMENTS_DEF = "implements_def"
184184
USES_DEF = "uses_def"
185-
EXPORTS_DEF = "exports_def"
185+
EXPORT = "export"
186186
STRUCT_DEF = "struct_def"
187187
ENUM_DEF = "enum_def"
188188
EVENT_DEF = "event_def"
@@ -205,7 +205,7 @@
205205
INITIALIZES_STMT,
206206
IMPLEMENTS_DEF,
207207
USES_DEF,
208-
EXPORTS_DEF,
208+
EXPORT,
209209
CONSTANT_DEF,
210210
IMMUTABLE_DEF,
211211
INTERFACE_DEF,

0 commit comments

Comments
 (0)