-
Notifications
You must be signed in to change notification settings - Fork 52
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
Feature request: Expose tag from dollar quoted strings #281
Comments
This seems like a good change to me, feel free to take this as guidance not the exact behaviour but I would expect a test like this (
|
Ah, that preserves the currrent behaviour with any matching on This is the current parse for that example.
Thanks for the quick response. I can't commit to an implementation timeline. That said, I would like to do it this week, while looking at my monochrome embedded json acts as a reminder. The use of |
Either of those make sense to me 👍 |
I use this grammar with neovim and I would like to take advantage of the language injection functionality. One elegant way to do this is to parse the language indicated in a dollar quoted string tag.
(It seems linguist, via https://github.com/textmate/sql.tmbundle, gets the highlighting here correct — I'm not sure how, though.)
At the moment, the whole text (including the tags) gets returned as a
(literal)
. I would like to return an expression like(quoted_string tag: (literal) value: (literal))
.It looks like this requires a change to
scanner.c
for this, though, and it would also have knock on effects downstream (although these would be small and manageable).Would such a change be welcome?
The text was updated successfully, but these errors were encountered: