Skip to content

Commit

Permalink
Remove excess space from parsed word assignment.
Browse files Browse the repository at this point in the history
Closes #407.
  • Loading branch information
flatheadmill committed Dec 25, 2019
1 parent eb089ae commit 090ebf4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion parse.all.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function map (packet, bff) {
bite += direction
}
if (bytes == 1) {
return `${assignee} = ${reads.join('')}`
return `${assignee} = ${reads.join('')}`
}
step += 2
const parsed = $(`
Expand Down
2 changes: 1 addition & 1 deletion test/generated/byte.parser.all.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = function (parsers) {
word: 0
}

object.word = $buffer[$start++]
object.word = $buffer[$start++]

return object
}
Expand Down
2 changes: 1 addition & 1 deletion test/generated/byte.parser.bff.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = function (parsers) {
return parsers.inc.object(object, 0)($buffer, $start, $end)
}

object.word = $buffer[$start++]
object.word = $buffer[$start++]

return { start: $start, object: object, parse: null }
}
Expand Down

0 comments on commit 090ebf4

Please sign in to comment.