Skip to content

Commit da7f257

Browse files
committed
Add quotes to property-value shared-names conditions
1 parent 9216c53 commit da7f257

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed

src/vscode-css/grammars/css.cson

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2252,40 +2252,40 @@
22522252
.*; # Any characters followed by a semicolon (denotes a property)
22532253
| [^{]*} # Any characters, except an opening brace, followed by a closing bracket (denotes a property)
22542254
| - # A dash (denotes a property name)
2255-
| \\: # A colon, unless it's with one of the following:
2256-
(?!
2257-
# A opening bracket before an closing bracket
2258-
[^}]*{
2259-
# A pseudo-class selectors
2260-
| active|any-link|checked|disabled|empty|enabled|first
2261-
| (?:first|last|only)-(?:child|of-type)|focus|focus-visible|focus-within|fullscreen|host|hover
2262-
| in-range|indeterminate|invalid|link|out-of-range
2263-
| read-only|read-write|required|root|scope|target|unresolved
2264-
| valid|visited
2255+
| \\: # A colon, unless it's with one of the following:
2256+
(?!
2257+
# An unquoted opening bracket before an closing bracket
2258+
[^}]*[^'"]{
2259+
# A pseudo-class selectors
2260+
| active|any-link|checked|disabled|empty|enabled|first
2261+
| (?:first|last|only)-(?:child|of-type)|focus|focus-visible|focus-within|fullscreen|host|hover
2262+
| in-range|indeterminate|invalid|link|out-of-range
2263+
| read-only|read-write|required|root|scope|target|unresolved
2264+
| valid|visited
22652265
2266-
# A functional pseudo-class selectors
2267-
| (?: dir|lang
2268-
| not|has|matches|where|is
2269-
| nth-(?:last-)?(?:child|of-type)
2270-
)\\(
2266+
# A functional pseudo-class selectors
2267+
| (?: dir|lang
2268+
| not|has|matches|where|is
2269+
| nth-(?:last-)?(?:child|of-type)
2270+
)\\(
22712271
2272-
# A single-colon pseudo-element selectors
2273-
| after
2274-
| before
2275-
| first-letter
2276-
| first-line
2277-
| (?:
2278-
\\-
2279-
(?:
2280-
ah|apple|atsc|epub|hp|khtml|moz
2281-
| ms|o|rim|ro|tc|wap|webkit|xv
2282-
)
2283-
| (?:
2284-
mso|prince
2272+
# A single-colon pseudo-element selectors
2273+
| after
2274+
| before
2275+
| first-letter
2276+
| first-line
2277+
| (?:
2278+
\\-
2279+
(?:
2280+
ah|apple|atsc|epub|hp|khtml|moz
2281+
| ms|o|rim|ro|tc|wap|webkit|xv
22852282
)
2286-
)
2287-
-[a-z-]+
2288-
)
2283+
| (?:
2284+
mso|prince
2285+
)
2286+
)
2287+
-[a-z-]+
2288+
)
22892289
)
22902290
)
22912291
'''

0 commit comments

Comments
 (0)