Open mbrehler opened 3 years ago
@michaelmior Could you please take a look at this pull request? I fixed trivial merge conflicts recently, let me know if you have other suggestions.
Thanks! Merged in 4c1effd23d22162d7081566accd85d755815a089
Looking at this more closely, there are a couple cases that aren't handled here. For example, spaces and double quotes should be enclosed in single quotes also. Single quotes should also be escaped and then quoted.
When creating the text representation of a path, field names that contain lexer literals (like a period ".') should be enclosed in quotes (or brackets).
The proposed fix only adds quotes if needed (as opposed to alway). This avoids changing current paths/behavior drastically since it seems no one has run into this so far.
Change-Id: Ia6e01f9b8218182aa61d3c39b16d4bfb57e4f593