Skip to content

Commit

Permalink
fix: Automatically remove trailing whitespace when parsing scripts to…
Browse files Browse the repository at this point in the history
… avoid needing to change all regular expressions separately
  • Loading branch information
Balloonpopper authored and StraToN committed Mar 9, 2022
1 parent 7aca986 commit b05be36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/escoria-core/game/core-scripts/esc/esc_compiler.gd
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func _compile(lines: Array) -> Array:
var returned = []

while lines.size() > 0:
var line = lines.pop_front()
var line = lines.pop_front().strip_edges(false, true)
escoria.logger.trace("Parsing line %s" % line)
if _comment_regex.search(line) or _empty_regex.search(line):
# Ignore comments and empty lines
Expand Down

0 comments on commit b05be36

Please sign in to comment.