Skip to content

Commit

Permalink
Split variable increment from an expression
Browse files Browse the repository at this point in the history
  • Loading branch information
certik committed Apr 12, 2021
1 parent b69a39e commit d5e247d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion grammar/asdl_cpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,8 @@ def visitConstructor(self, cons, _):
def make_visitor(self, name, fields, cons):
self.emit("void visit_%s(const %s_t &x) {" % (name, name), 1)
self.emit( 'if(indent) {',2)
self.emit( 'round[++tmp1] = indent_level;',3)
self.emit( 'tmp1++;',3)
self.emit( 'round[tmp1] = indent_level;',3)
self.emit( 'if(start_line) {',3)
self.emit( 'start_line = false;', 4)
self.emit( 's.append(indtd);', 4)
Expand Down

0 comments on commit d5e247d

Please sign in to comment.