From: Robin Salkeld Date: 2010-04-06T09:30:44+09:00 Subject: [ruby-core:29268] [Bug #1868] ERB single line comment does not work Issue #1868 has been updated by Robin Salkeld. This seems to be caused by removing \n from the regular expressions used in ERB::Compiler::SimpleScanner2: stag_reg = /(.*?)(<%%|<%=|<%#|<%|\z)/m etag_reg = /(.*?)(%%>|%>|\z)/m It looks like the original change was intended as an optimization, but unintentially changed the behaviour. Restoring the \n's fixes it. <%# may work for comments as well, but a lot of us have relied on the old behaviour, and I see no reason not to fix an accidental regression. ---------------------------------------- http://redmine.ruby-lang.org/issues/show/1868 ---------------------------------------- http://redmine.ruby-lang.org