lib/kompiler/parsers.rb in kompiler-0.3.0.pre.1 vs lib/kompiler/parsers.rb in kompiler-0.3.0.pre.2
- old
+ new
@@ -301,11 +301,11 @@
# Move to the next character
i += 1
end
- # After operand content was collected, add it to the list of operands
- operand_strings << operand_content
+ # After operand content was collected, add it to the list of operands if the content isn't empty
+ operand_strings << operand_content if operand_content.size != 0
end
# Parse operand strings into operand types and values
operands = []