I found two snippets that will make Haml 1.7 crash.

When fed with this little file:

  !light_gray = #f0e0e4
  #header
    :background-color = !light_gray url(bg.png) repeat-x

Haml will crash with this message

  NoMethodError: undefined method `[]' for :concat:Symbol
  Backtrace:
  ./script/../config/../vendor/plugins/stable/lib/sass/constant.rb:
209:in `insert_constant'
  ./script/../config/../vendor/plugins/stable/lib/sass/constant.rb:
188:in `operationalize'
  ...

Haml will fail on these lines

  !light_gray = #f0e0e4
  #header
    :background-color = !light_gray url(bg.png)

and report this error

  Sass::SyntaxError: Constant arithmetic error: "!light_gray
url(bg.png)"

--
Gioele


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to