Allow dots in paths.

Add a dot to the set of characters that can be in a path string.
This commit is contained in:
Mark Stemm 2017-08-04 11:06:51 -07:00
parent 5c1aa8dc44
commit de520a60fb

View File

@ -237,7 +237,7 @@ local G = {
Identifier = V"idStart" * V"idRest"^0;
Macro = V"idStart" * V"idRest"^0 * -P".";
Int = digit^1;
PathString = (alnum + S'-_/*?')^1;
PathString = (alnum + S'.-_/*?')^1;
Index = V"Int" + V"PathString";
FieldName = V"Identifier" * (P"." + V"Identifier")^1 * (P"[" * V"Index" * P"]")^-1;
Name = C(V"Identifier") * -V"idRest";