Have you tried only using the opening comment /* and removing the
closing one? I think like most of haml/sass you don't think you have
to close it.

Otherwise you'll probably have to properly close all comments without
nesting them.

--Jason

On Dec 6, 2007 3:51 PM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> I can use //, but I can't use /*
>
> ----------------------------------------------------------------
> What version of Haml you were using: 1.7.0
> What version of Ruby you were using: ruby 1.8.6 (2007-03-13 patchlevel
> 0)
> Whether you were using Haml with Ruby on Rails: yes
> If so, what version of Ruby on Rails you were using. RAILS_GEM_VERSION
> = '1.2.3'
> A test case (as small as possible) where the bug appears.
>
> This is ok:
>
> !border_color = grey
> table.service, table.invoice, table.invoice_item
>   :border
>     :color = !border_color
>     :style solid
>     :width 1px
>     // :collapse collapse
>     :spacing 0px
>   :empty-cells show
>   /*:width 100% */
>   :table-layout fixed
>   :border-width 1px
>
> This produces error:
>
> !border_color = grey
> table.service, table.invoice, table.invoice_item
>   :border
>     :color = !border_color
>     :style solid
>     :width 1px
>     /* :collapse collapse
>     :spacing 0px
>   :empty-cells show
>   /*:width 100% */
>   :table-layout fixed
>   :border-width 1px
>
> Error is:
>
> /*
> Sass::SyntaxError: Illegal nesting: Only attributes may be nested
> beneath attributes.
> on line 172 of script/../config/../public/stylesheets/sass/
> swiftwill.sass
>
> 168:   :border
> 169:     :color = !border_color
> 170:     :style solid
> 171:     :width 1px
> 172:     /* :collapse collapse
> 173:     :spacing 0px
> 174:   :empty-cells show
> 175:   /*:width 100% */
> 176:   :table-layout fixed
> 177:   :border-width 1px
> 178:
>
>
> Backtrace:
> script/../config/../public/stylesheets/sass/swiftwill.sass:172
> ./script/../config/../vendor/plugins/stable/lib/sass/tree/node.rb:
> 15:in `<<'
> ./script/../config/../vendor/plugins/stable/lib/sass/engine.rb:202:in
> `build_tree'
> ./script/../config/../vendor/plugins/stable/lib/sass/engine.rb:194:in
> `build_tree'
> ./script/../config/../vendor/plugins/stable/lib/sass/engine.rb:101:in
> `render_to_tree'
> ./script/../config/../vendor/plugins/stable/lib/sass/engine.rb:78:in
> `render'
> ./script/../config/../vendor/plugins/stable/lib/sass/plugin.rb:55:in
> `update_stylesheets'
> ./script/../config/../vendor/plugins/stable/lib/sass/plugin.rb:40:in
> `each'
> ./script/../config/../vendor/plugins/stable/lib/sass/plugin.rb:40:in
> `update_stylesheets'
> ./script/../config/../vendor/plugins/stable/lib/sass/plugin.rb:123:in
> `process'

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