You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OK, I'll see what I can do. Development is kind of at a low ebb at the moment, as I'm pretty busy with my real job, but I'll definitely put this on the list. If you have any contributions to make, feel free to submit a PR.
but to be honest they don't look valid according to the grammar. There seem to be some discrepancies between the docs and the implementation as I had to edit the index_string regex according to this.
Activity
MattDMo commentedon May 26, 2015
Can you please elaborate? What sort of support would you like to see?
sprt commentedon May 26, 2015
See https://docs.python.org/2/library/string.html#formatstrings
For example,
{}in'{}'.format(foo)isn't properly highlighted but'%s' % foois.MattDMo commentedon May 26, 2015
OK, I'll see what I can do. Development is kind of at a low ebb at the moment, as I'm pretty busy with my real job, but I'll definitely put this on the list. If you have any contributions to make, feel free to submit a PR.
sprt commentedon Jun 13, 2015
Okay I came up with this regex:
This is the script I used to build it:
You can see here that it works pretty well. I just copy-pasted the examples from the Python docs.
These are the only strings it can't parse:
but to be honest they don't look valid according to the grammar. There seem to be some discrepancies between the docs and the implementation as I had to edit the
index_stringregex according to this.Changed scope for regular_expressions, started working on string_form…