Skip to content

Commit

Permalink
Fix documentation to reflect the language with more precision
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessio Linares committed Nov 28, 2016
1 parent deef167 commit 99ee955
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ JsonPath Language
=================
This library implements the following specification:
```
number = ([0-9]+(\.[0-9]*) | ([0-9]*\.[0-9]+))
var_name = [a-zA-Z\_\$][\w\$]*
number = ([0-9]+(\.[0-9]*) | ([0-9]*\.[0-9]+))
string = ('\''.*?'\'' | '"'.*?'"')
boolean = ('true' | 'false')
regpattern = '/'.*?'/'
Expand All @@ -107,11 +108,11 @@ childpath = '@' operator*
operator = (childname | childfilter | recursive) operator*
childname = '.' (js_valid_name | '*')
recursive = '..' (js_valid_name | '*')
childname = '.' (var_name | '*')
recursive = '..' (var_name | '*')
childfilter = '[' ('*' | namelist | indexlist | arrayslice | filterexpr) ']'
namelist = js_valid_name (',' (js_valid_name | '\'' .*? '\'' | '"' .*? '"'))*
namelist = var_name (',' (var_name | '\'' .*? '\'' | '"' .*? '"'))*
indexlist = index (',' index)*
arrayslice = index? ':' index? ':' index?
filterexpr = '?(' ors ')'
Expand Down

0 comments on commit 99ee955

Please sign in to comment.