The suggested way of writing Haml is with a space after the directive. haml-mode doesn't have Ruby syntax highlighting for the Ruby portions at the moment... I've poked around with MuMaMo a little in that direction, but I haven't made any real progress yet. The proper highlighting is the sort you see on the second line. The string in the first line is highlighted because haml-mode keeps Emacs' default string highlighting. I really have no idea why the ivar or the symbol are highlighted; they aren't in my Emacs.
On Tue, Jan 6, 2009 at 2:47 PM, topfunky <[email protected]>wrote: > > I'm using haml-mode.el from the Git repo and noticed a weird behavior. > It only performs syntax highlighting if the content comes immediately > after the = or - (no space). > > For example, line one is all blue, but line two shows the instance > variable vs. the array. > > http://peepcode.com/system/uploads/2008/haml-mode-el-highlight-bug.png > > Is this the preferred way of writing Haml (no spaces after a > directive), or is it a bug in the emacs mode? I assume that Nathan is > using it since he wrote it. > > > Geoffrey Grosenbach > http://peepcode.com > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/haml?hl=en -~----------~----~----~----~------~----~------~--~---
