Allow underscores in IDENT tokens. Fixes #3.

IDENT syntax now includes ASCII letters and underscores, so
'.foo_bar' now works. Non-ASCII letters won't work in IDENT
tokens (it's impossible to tell which non-ascii characters are
"letters" without full unicode tables), so '.données' is still
a syntax error (the workaround is '.["données"]', since you can
put anything you like in a string).
This commit is contained in:
Stephen Dolan committed 2012-09-22 14:03:46 +01:00
1 parent 359d5f33bd
commit a2643cc0d5
2 files changed
+5 -1

No files matched your search

+4
View File
@@ -61,6 +61,10 @@ null
{"foo": {"bar": 42}, "bar": "badvalue"}
42
.foo_bar
{"foo_bar": 2}
2
.["foo"].bar
{"foo": {"bar": 42}, "bar": "badvalue"}
42