lib/aws/cfn/dsl/template.rb in aws-cfn-dsl-0.8.4 vs lib/aws/cfn/dsl/template.rb in aws-cfn-dsl-0.8.5

- old
+ new

@@ -70,10 +70,10 @@ end end def hash_refs(line,scope) block_regex = %r/\{\s*:\S+\s*=>.*?\}|\{\s*\S+:\s*.*?\}/ - match = line.match %r/^(.*?)(#{block_regex})(.*)$/ + match = line.match %r/^([^#]*?)(#{block_regex})(.*)$/ if match left = match[1] code = match[2] tail = match[3] while true