mfile2sci: block-comments %{ .. %} are badly converted
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
mfile2sci: block-comments %{ .. %} are badly converted:
--> code =
"%{ This is a block comment %} a = 1; "
"%{ Multiline"
"block comment %}"
--> converted
converted =
""
"//( This is a block comment %).entries a = 1; "
"//( Multiline"
"// !! L.3: Unknown function block not converted, original calling sequence used."
"block("comment")//]))"
ERROR LOG:
----------
See the description
HOW TO REPRODUCE THE BUG:
-------------------------
mfile = TMPDIR+"/bug_16567";
code = ["%{ This is a block comment %} a = 1; "
"%{ Multiline"
"block comment %}"]
mputl(code, mfile+".m");
mfile2sci(mfile+".m", TMPDIR)
converted = mgetl(mfile+".sci")
OTHER INFORMATION:
------------------
The Scilab /* .. */ symbols can now be used by the mfile2sci pre-processor.