1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

[Sass] [SCSS] Support the @debug directive.

This commit is contained in:
Nathan Weizenbaum 2009-12-21 22:26:00 -08:00
parent 171474485e
commit 01494e94ab

View file

@ -36,7 +36,7 @@ module Sass
true
end
DIRECTIVES = Set[:mixin, :include]
DIRECTIVES = Set[:mixin, :include, :debug]
def directive
return unless name = tok(ATRULE)
@ -76,6 +76,10 @@ module Sass
node(Sass::Tree::MixinNode.new(name, args))
end
def debug
node(Sass::Tree::DebugNode.new(sass_script_parser.parse))
end
def variable
return unless raw '!'
name = tok! IDENT