Don't require the module name after end

This commit is contained in:
2025-06-03 12:14:59 +02:00
parent 1983ef8e71
commit 82f0d40a56
10 changed files with 397 additions and 223 deletions

View File

@ -109,6 +109,7 @@ task :backport do
.gsub(/proc\(/, 'PROCEDURE(')
.gsub(/ & /, ' AND ')
.gsub(/ -> /, ': ')
.gsub(/end\./, "END #{source_path.basename.sub_ext('')}.")
.gsub(/([[:space:]]*)end(;?)$/, '\1END\2')
.gsub(/^([[:space:]]*)(while|return|if)\b/) { |match| match.upcase }
.gsub(/^from ([[:alnum:]]+) import/, 'FROM \1 IMPORT')