fix: Automatically remove trailing whitespace when parsing scripts to avoid needing to change all regular expressions separately
This commit is contained in:
committed by
Julian Murgia
parent
7aca986cf7
commit
b05be369b2
@@ -117,7 +117,7 @@ func _compile(lines: Array) -> Array:
|
|||||||
var returned = []
|
var returned = []
|
||||||
|
|
||||||
while lines.size() > 0:
|
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)
|
escoria.logger.trace("Parsing line %s" % line)
|
||||||
if _comment_regex.search(line) or _empty_regex.search(line):
|
if _comment_regex.search(line) or _empty_regex.search(line):
|
||||||
# Ignore comments and empty lines
|
# Ignore comments and empty lines
|
||||||
|
|||||||
Reference in New Issue
Block a user