#2331: piraha accepts in-string comments on first line of string
Reporter:Roland Haas
Status:new
Milestone:
Version:
Type:bug
Priority:major
Component:Cactus

Cactus' parameter files allow things like:

ActiveThorns = "
# PUGH
Carpet
HydroBase
"

ie allow one to comment out lines in a multi-line string by starting it with a “#”. However Piraha does not quite handle this correctly. It accepts

ActiveThorns = "#FooBar"

which is incorrect. # comments are supposed to be only allowed in lines after the first line. The original commit git hash b6cd766a "Accept comments in multi-line strings in parameter files" of cactus does this but piraha’s string_reparser function (bad name) does not.

This makes it impossible to set a string to “#” eg if one wanted to let a user specify a comment character for output files.

--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2331/piraha-accepts-in-string-comments-on-first