mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-12-21 13:16:49 +01:00
Handle comments at after code lines better.
This commit is contained in:
parent
6341759d8e
commit
faffbadf36
@ -413,11 +413,17 @@ class GDSParser:
|
|||||||
ret.append("#" + expstr)
|
ret.append("#" + expstr)
|
||||||
l = l.replace(expstr, "")
|
l = l.replace(expstr, "")
|
||||||
|
|
||||||
var setget_indx = lfstrip.find(" setget ")
|
var setget_indx = l.find(" setget ")
|
||||||
if setget_indx != -1:
|
if setget_indx != -1:
|
||||||
var setget_str : String = lfstrip.substr(setget_indx)
|
var setget_str : String = l.substr(setget_indx)
|
||||||
ret.append("#" + setget_str)
|
ret.append("#" + setget_str)
|
||||||
l = l.replace(setget_str, "")
|
l = l.substr(0, setget_indx).strip_edges(false, true)
|
||||||
|
|
||||||
|
var hash_symbol_index = l.find("#")
|
||||||
|
if hash_symbol_index != -1:
|
||||||
|
var comment_str : String = l.substr(hash_symbol_index)
|
||||||
|
ret.append(comment_str)
|
||||||
|
l = l.substr(0, hash_symbol_index).strip_edges(false, true)
|
||||||
|
|
||||||
if l.ends_with("\\"):
|
if l.ends_with("\\"):
|
||||||
if !accum:
|
if !accum:
|
||||||
|
Loading…
Reference in New Issue
Block a user