Permalink
Browse files

Change (?: to (:

  • Loading branch information...
ingydotnet committed Jul 9, 2012
1 parent 0d1a1b0 commit 793686416407470750162325d3bfc633d413bdfa
Showing with 5 additions and 5 deletions.
  1. +5 −5 json.pgx
View
@@ -26,20 +26,20 @@ scalar:
# Need to doublecheck string rules.
string: /
<DOUBLE>
- ((?:
+ ((:
<BACK><BACK> |
<BACK><DOUBLE> |
[^ <DOUBLE> <BREAK> ]
)*)
<DOUBLE>
/
-# Need to check all possible allowable number forms: -.2 -0 -1. 1e9 etc
+# Need to check all possible allowable number forms.
number: /(
<DASH>?
- (?: 0 | [1-9]<DIGIT>* )
- (?: <DOT> <DIGIT>* )?
- (?: [eE] [<DASH><PLUS>]? <DIGIT>+ )?
+ (: 0 | [1-9] <DIGIT>* )
+ (: <DOT> <DIGIT>* )?
+ (: [eE] [<DASH><PLUS>]? <DIGIT>+ )?
)/
boolean: <true> | <false>

0 comments on commit 7936864

Please sign in to comment.