GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Rubygem
Fork of nex3/haml
Description: HTML Abstraction Markup Language - A Markup Haiku
Homepage: http://haml.hamptoncatlin.com
Clone URL: git://github.com/chriseppstein/haml.git
allow whitespace between mixin include's name and args
nullstyle (author)
Wed Oct 08 21:42:18 -0700 2008
chriseppstein (committer)
Wed Oct 08 22:20:23 -0700 2008
commit  e51b52d73e6fc6bc097f9a31a5180da23adcbc1a
tree    6f80df62c7cc8f106b9756983b4b23332e657f33
parent  336fb4663cc40dc2bb672eef26b708e4850b813e
...
411
412
413
 
414
415
416
...
411
412
413
414
415
416
417
0
@@ -411,6 +411,7 @@ END
0
 
0
     def parse_mixin_include(line, root)
0
       name, arg_string = line.text.scan(/^\+\s*([^(]+)(.*)$/).first
0
+ name.strip!
0
       args = parse_mixin_arguments(arg_string)
0
       raise SyntaxError.new("Illegal nesting: Nothing may be nested beneath mixin directives.", @line + 1) unless line.children.empty?
0
       raise SyntaxError.new("Invalid mixin include \"#{line.text}\".", @line) if name.nil? || args.nil?
...
355
356
357
 
 
 
 
 
 
 
 
358
359
360
...
355
356
357
358
359
360
361
362
363
364
365
366
367
368
0
@@ -355,6 +355,14 @@ SASS
0
 blat
0
   +foo(\"hi\")
0
 SASS
0
+
0
+ assert_equal("blat {\n baz: hi; }\n", render(<<SASS))
0
+=foo(!bar)
0
+ baz = !bar
0
+blat
0
+ +foo (\"hi\")
0
+SASS
0
+
0
     assert_equal("blat {\n baz: 3; }\n", render(<<SASS))
0
 =foo(!a, !b)
0
   baz = !a + !b

Comments

    No one has commented yet.