Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add string_content node for easier querying #47

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

alexmozaidze
Copy link

Made colon in a colon string to be its own anonymous node, and added (string_content) which captures just the string's content, without the colon or quotes, making it easier to query:

:my-string

---

(string
  ":"
  (string_content))

Important

There is an unpleasant side-effect of a single colon : being detected as a string with missing string_content. This is not a big issue, since the only place a single colon is used is in a binding, which itself overrides (string). A more elegant solution would be an external parser, but that's too much for such a small issue.

And also made `:` in a colon string to be its own anonymous node. However, this comes with a side-effect of a singular `:` being detected as `(string)` with missing `(string_content)`, but it doesn't matter since the only place a single `:` is used is a binding, which overrides `(string)`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant