<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -35,7 +35,9 @@ module Liquid
   VariableIncompleteEnd       = /\}\}?/
   QuotedFragment              = /&quot;[^&quot;]+&quot;|'[^']+'|[^\s,|]+/
   TagAttributes               = /(\w+)\s*\:\s*(#{QuotedFragment})/
-  TemplateParser              = /(#{TagStart}.*?#{TagEnd}|#{VariableStart}.*?#{VariableIncompleteEnd})/
+  AnyStartingTag              = /\{\{|\{\%/
+  PartialTemplateParser       = /#{TagStart}.*?#{TagEnd}|#{VariableStart}.*?#{VariableIncompleteEnd}/
+  TemplateParser              = /(#{PartialTemplateParser}|#{AnyStartingTag})/
   VariableParser              = /\[[^\]]+\]|#{VariableSegment}+/
 end
 </diff>
      <filename>lib/liquid.rb</filename>
    </modified>
    <modified>
      <diff>@@ -18,6 +18,17 @@ class ParsingQuirksTest &lt; Test::Unit::TestCase
     end
   end
   
+  def test_raise_on_label_and_no_close_bracets
+    assert_raise(SyntaxError) do
+      Template.parse(&quot;TEST {{ &quot;)
+    end
+  end    
+  
+  def test_raise_on_label_and_no_close_bracets_percent
+    assert_raise(SyntaxError) do
+      Template.parse(&quot;TEST {% &quot;)
+    end
+  end
   
   def test_error_on_empty_filter
     assert_nothing_raised do
@@ -26,4 +37,5 @@ class ParsingQuirksTest &lt; Test::Unit::TestCase
       Template.parse(&quot;{{|test|}}&quot;)      
     end
   end
+  
 end
\ No newline at end of file</diff>
      <filename>test/parsing_quirks_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>6dd4f716f824b66680976f564cfc85615283fe9e</id>
    </parent>
  </parents>
  <author>
    <name>Emmanuel Oga</name>
    <email>eoga@elctech.com</email>
  </author>
  <url>http://github.com/tobi/liquid/commit/3eddf5fb9e708cf26603d1f535a60e2e5ae0fc65</url>
  <id>3eddf5fb9e708cf26603d1f535a60e2e5ae0fc65</id>
  <committed-date>2008-07-08T08:54:52-07:00</committed-date>
  <authored-date>2008-07-08T08:54:52-07:00</authored-date>
  <message>adjusted parsing regex for syntax quirk</message>
  <tree>61f0e314c49a8c47640654dad4049676573812e5</tree>
  <committer>
    <name>Emmanuel Oga</name>
    <email>eoga@elctech.com</email>
  </committer>
</commit>
