@ -298,6 +299,40 @@ See the manual section about [Configuration](@ref) for more information.
@@ -298,6 +299,40 @@ See the manual section about [Configuration](@ref) for more information.
"""
constDEFAULT_CONFIGURATION=nothing# Dummy const for documentation
# Turn block comments starting in the first column into "normal" hash comments
functionhashify_block_comments(input)
lines_in=collect(eachline(IOBuffer(input)))
lines_out=IOBuffer()
line_number=0
in_block_comment_region=false
forlineinlines_in
line_number+=1
ifoccursin(r"^#=",line)
ifin_block_comment_region
error("line $(line_number): already in block comment region\n$(line)")
end
println(lines_out,replace(line,r"^#="=>"#"))
in_block_comment_region=true
elseifoccursin(r"^=#",line)
if!in_block_comment_region
error("line $(line_number): not in block comment region\n$(line)")