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

Problems with {{ }} below {% %} #28

Open
tfeldmann opened this issue Nov 10, 2015 · 1 comment
Open

Problems with {{ }} below {% %} #28

tfeldmann opened this issue Nov 10, 2015 · 1 comment
Labels

Comments

@tfeldmann
Copy link

As you can see in the screenshot the first pair of braces is highlighted, but all braces below {% %} aren't:

bildschirmfoto 2015-11-10 um 16 45 38

@vpetrovykh
Copy link
Member

vpetrovykh commented Nov 10, 2015

Currently this is by design. The issue is that there is no way of telling whether {{ and }} are meant to be used with {}-format string or something else. Since double braces have special meaning in {}-format strings they are highlighted.

Starting from the point where we see {%...%}, we can tell that this string is highly unlikely to be a {}-format string or a %-format string. However, anything preceding this will be highlighted normally, that is to say that the potential formatting symbols are shown.

We do have some plans for configurable options for string highlighting, where you could disable the highlighting for formats that you personally don't need. So stay tuned.

In the interim, if this highlighting bothers you, you can actually tweak the color schema to hide this from you by making special characters inside strings the same color as the string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants