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

url() highlighting sometimes incorrect #47

Open
TamsynUlthara opened this issue Apr 19, 2016 · 0 comments
Open

url() highlighting sometimes incorrect #47

TamsynUlthara opened this issue Apr 19, 2016 · 0 comments

Comments

@TamsynUlthara
Copy link

The highlighting for url() seems incorrect in a strange mix of circumstances:

  • The line with url() is indented with tabs, not spaces.
  • url()'s argument uses quotes (which is sometimes necessary in Stylus, e.g., for embedded images).
  • url()'s argument has a character followed by an equal sign (=), such as you might see in a Base64 data URI. Not all prefix characters trigger this, but alphanumerics do.

For example, this triggers the incorrect highlighting in vim-stylus (assuming tabs for indentation):

div
    background: url("a=")

It looks like that combination triggers the assignment syntax rules, and interprets the closing quote in url("a=") as the opening quote of a 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

No branches or pull requests

1 participant