When Haml code is stretched over multiple lines, fontification breaks #7

Closed
scalisi opened this Issue Aug 3, 2011 · 0 comments

Projects

None yet

2 participants

@scalisi
scalisi commented Aug 3, 2011

Below are two blocks of code from the Haml reference as they appear in the reference:

= link_to_remote "Add to cart",
    :url => { :action => "add", :id => product.id },
    :update => { :success => "cart", :failure => "error" }
- links = {:home => "/",
    :docs => "/docs",
    :about => "/about"}

In Emacs, the above code has the following fontification problems:

  • The symbols in the hashes in the last two lines of each block will not be fontified.
  • The other symbols in the last two lines of each block will be fontitied as if they were strings.
  • The strings in the last two lines of each block will not be fontified.
@purcell purcell added a commit that closed this issue Nov 20, 2012
@purcell purcell Correctly handle fontification when code after '=' or '-' directives …
…spans multiple lines

This fixes #7.
568f9e4
@purcell purcell closed this in 568f9e4 Nov 20, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment