scss-mode icon indicating copy to clipboard operation
scss-mode copied to clipboard

'//' in URL

Open JP-Ellis opened this issue 11 years ago • 2 comments

Hi,

The '//' characters indicate that the rest of the line is commented out, however this behaviour is ignored if it is part of a url. The GitHub SCSS marking for example displays it correctly:

@import url(http://www.example.com/); // A comment

The above code in scss-mode would have everything after http: commented out. This has the additional side-effect of messing up indentation after this as it matches up with the opening parenthesis.

JP-Ellis avatar Jan 09 '14 13:01 JP-Ellis

http://sass-lang.com/documentation/file.SASS_REFERENCE.html#import

Perhaps as a workaround you could just use @import "http://foo.com/bar"instead? That's documented in the above link.

hut8 avatar Sep 27 '15 18:09 hut8

I don't think there's any need for a workaround, it's only an aesthetic bug in the first place.

JP-Ellis avatar Oct 10 '15 14:10 JP-Ellis