Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Change (?: to (:

  • Loading branch information...
commit 793686416407470750162325d3bfc633d413bdfa 1 parent 0d1a1b0
@ingydotnet authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 json.pgx
View
10 json.pgx
@@ -26,7 +26,7 @@ scalar:
# Need to doublecheck string rules.
string: /
<DOUBLE>
- ((?:
+ ((:
<BACK><BACK> |
<BACK><DOUBLE> |
[^ <DOUBLE> <BREAK> ]
@@ -34,12 +34,12 @@ string: /
<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>
Please sign in to comment.
Something went wrong with that request. Please try again.