<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -94,12 +94,18 @@ module JavascriptFu
       when /[)}\]]/
         level -= 1
       when /'/
+        scanner.scan(/.*?'/)
       when /&quot;/
+        scanner.scan(/.*?&quot;/)
       else
         raise &quot;unimplemented&quot;
       end
     end
     string = string[0...scanner.pos-1] if scanner.pos &gt; 0
-    ActiveSupport::JSON.decode('[' + string + ']')
+    begin
+      ActiveSupport::JSON.decode('[' + string + ']')
+    rescue ActiveSupport::JSON::ParseError =&gt; error
+      raise ActiveSupport::JSON::ParseError.new(&quot;#{string.inspect}&quot;)
+    end
   end
 end</diff>
      <filename>lib/js_fu_matchers.rb</filename>
    </modified>
    <modified>
      <diff>@@ -79,7 +79,7 @@ describe :call_js do
       end
     end
     
-    it &quot;should include nested objects&quot; do
+    it &quot;should parse nested objects&quot; do
       string = '&lt;script&gt;fname(&quot;string&quot;, [1,2], {a:3})&lt;/script&gt;'
       string.should call_js('fname') do |args|
         args.should == ['string', [1,2], {'a' =&gt; 3}]</diff>
      <filename>spec/js_fu_matchers.rb</filename>
    </modified>
    <modified>
      <diff>@@ -22,8 +22,17 @@ describe JavascriptFu do
       JavascriptFu.read_json_arglist('1,[{a:[2],b:{c:3}},[4]],5)]]').should == [1, [{'a' =&gt; [2], 'b' =&gt; {'c' =&gt; 3}}, [4]], 5]
     end
     
-    it &quot;should scan strings&quot;
-    it &quot;should scan strings with quoted quotes&quot;
+    it &quot;should scan strings&quot; do
+      JavascriptFu.read_json_arglist(&quot;'str')&quot;).should == ['str']
+      JavascriptFu.read_json_arglist('&quot;str&quot;)').should == ['str']
+      JavascriptFu.read_json_arglist(&quot;'str','ing')&quot;).should == ['str', 'ing']
+    end
+    
+    it &quot;should scan strings with quoted quotes&quot; do
+      pending
+      JavascriptFu.read_json_arglist('&quot;str\\\&quot;ing&quot;)').should == ['str&quot;ing']
+    end
+    
     it &quot;should scan simple regular expressions&quot;
   end
 end</diff>
      <filename>spec/read_json_arglist_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2118a1ea49a2503140ab2ea336852c6d1e449f47</id>
    </parent>
  </parents>
  <author>
    <name>Oliver Steele</name>
    <email>steele@osteele.com</email>
  </author>
  <url>http://github.com/osteele/javascript_fu/commit/56fff8fbfa3a9c93dd10a7a4b5893ae4b59ef304</url>
  <id>56fff8fbfa3a9c93dd10a7a4b5893ae4b59ef304</id>
  <committed-date>2008-04-14T18:54:11-07:00</committed-date>
  <authored-date>2008-04-14T18:54:11-07:00</authored-date>
  <message>parse some strings</message>
  <tree>6656a848b8deea1e0a452b18ff6079498f9c655d</tree>
  <committer>
    <name>Oliver Steele</name>
    <email>steele@osteele.com</email>
  </committer>
</commit>
