I kind of choked on my beer when I read about people legitimately using comments to close blocks. I considered a deprecation warning when a comment was found that closed a block and had no accompanying markup / real code to close the block at the same level so people could be scolded for such a weird practice.
Could you point me to some examples where people are using this feature legitimately? I'm really curious about it. On Thu, Nov 24, 2011 at 6:00 PM, Nathan Weizenbaum <nex...@gmail.com> wrote: > I don't like the idea of having flags that change the syntax of the > language in such a deep way. It limits the ability for people to transfer > their knowledge of Haml between projects. > > > On Wed, Nov 23, 2011 at 4:30 PM, Lorin Tackett <lorin.tack...@gmail.com>wrote: > >> Would it be possible to add an option to selectively enable this >> feature, if one wished? >> >> -- >> Lorin Tackett >> Browser Wrangler >> http://lorintackett.com • lorin.tack...@gmail.com • 206.395.5242 >> >> On Wednesday, November 23, 2011 at 1:12 PM, Nathan Weizenbaum wrote: >> >> It can be useful to close blocks using comments. It would also cause >> major backwards-compatibility problems to change the semantics now. >> >> On Wed, Nov 23, 2011 at 11:58 AM, Duncan Beevers <dun...@dweebd.com>wrote: >> >> I don't see why the indentation-level of -# lines is considered at all. I >> vote to remove whitespace significance before haml-comments. >> >> >> On Wed, Nov 23, 2011 at 1:05 PM, Nathan Weizenbaum <nex...@gmail.com>wrote: >> >> This is expected; since the second comment is indented less than the if >> block, it closes it, making the "else" a syntax error. >> >> >> On Mon, Nov 21, 2011 at 9:25 PM, Lorin Tackett >> <lorin.tack...@gmail.com>wrote: >> >> Consider the following Haml: https://gist.github.com/1384945 >> >> This generates an error because a comment is in between IF and ELSIF, and >> Haml proceeds to freak out. >> >> SyntaxError at / >> /Users/ltackett/projects/lorintackett/tests/haml_comment_conditions/source/layout.haml:8: >> syntax error, unexpected keyword_elsif, expecting keyword_end elsif >> test_var == 42 ^ >> /Users/ltackett/projects/lorintackett/tests/haml_comment_conditions/source/layout.haml:12: >> syntax error, unexpected keyword_ensure, expecting $end >> >> It generates an error no matter if I use loud comments or silent >> comments. This is pretty annoying. >> >> Tested with Haml 3.1.2. >> >> -- >> Lorin Tackett >> Browser Wrangler >> http://lorintackett.com >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Haml" group. >> To post to this group, send email to haml@googlegroups.com. >> To unsubscribe from this group, send email to >> haml+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/haml?hl=en. >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Haml" group. >> To post to this group, send email to haml@googlegroups.com. >> To unsubscribe from this group, send email to >> haml+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/haml?hl=en. >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Haml" group. >> To post to this group, send email to haml@googlegroups.com. >> To unsubscribe from this group, send email to >> haml+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/haml?hl=en. >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Haml" group. >> To post to this group, send email to haml@googlegroups.com. >> To unsubscribe from this group, send email to >> haml+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/haml?hl=en. >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Haml" group. >> To post to this group, send email to haml@googlegroups.com. >> To unsubscribe from this group, send email to >> haml+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/haml?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Haml" group. > To post to this group, send email to haml@googlegroups.com. > To unsubscribe from this group, send email to > haml+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/haml?hl=en. > -- You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to haml@googlegroups.com. To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/haml?hl=en.