Delimiter-terminated quotes. Really nice idea. I'd put the dot inside the comment: "#.x", with x being an optional quote delimiter (excluding dots). If a delimiter is included, the comment is terminated by the matching quote delimiter; if absent, the comment is terminated by the next dot.
$x#.[ ].foo(); $x.#.[ ]foo(); $x#. ..foo(); $x.#. .foo(); would all become $x.foo(); The third form would be legal, if a bit illegible. -- Jonathan Lang