Comment 9 for bug 579581

Revision history for this message
Perry Smith (pedz) wrote :

The way that ERB.new is called changes how it works. I searched the Rails code to see if I could find how it was called and it seemed fairly open as if a user could cause Rails (and ERB) to either accept the % or not. Plus, ERB can be used from other packages.

So, to really do this right, you would need a flag (like a buffer local variable) to change which patterns are accepted or not. And then add a customized variable so the default of the buffer local variable could be customized. But I think that is more work than it is worth. I don't think anyone uses the 4th through 6th items.

Perhaps add a comment in your code for the %, %%, and <%% constructs and then see if anyone asks for it. I really doubt it will come up.