Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

simplify grammar

  • Loading branch information...
commit 6d1caa6333c49d318401b20b38f6bd2b32637a56 1 parent 71e08dc
@moritz authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/JSON/Tiny/Grammar.pm
View
2  lib/JSON/Tiny/Grammar.pm
@@ -3,7 +3,7 @@ grammar JSON::Tiny::Grammar;
rule TOP { ^[ <object> | <array> ]$ }
rule object { '{' ~ '}' <pairlist> }
-rule pairlist { [ <pair>+ % [ \, ] ]? }
+rule pairlist { <pair>* % \, }
rule pair { <string> ':' <value> }
rule array { '[' ~ ']' <arraylist> }
rule arraylist { [ <value>+ % [ \, ] ]? }
Please sign in to comment.
Something went wrong with that request. Please try again.