tree-sitter / tree-sitter-css

CSS grammar for Tree-sitter
MIT License
85 stars 34 forks source link

URLs without quotation are considered errors #32

Closed T-727 closed 1 year ago

T-727 commented 1 year ago

Expected: URLs inside the url() function that do not include quotation marks are perfectly valid.

Current behaviour: URLs inside the url() function that do not include quotation marks are considered errors.

reference: https://developer.mozilla.org/en-US/docs/Web/CSS/url#syntax

The following are all valid and equivalent:

<css_property>: url("https://example.com/image.png")
<css_property>: url('https://example.com/image.png')
<css_property>: url(https://example.com/image.png)