Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion extensions/css/syntaxes/css.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -1506,6 +1506,9 @@
"patterns": [
{
"include": "#rule-list-innards"
},
{
"include": "$self"
}
]
},
Expand All @@ -1524,6 +1527,9 @@
"match": "(?x) (?<![\\w-])\n--\n(?:[-a-zA-Z_] | [^\\x00-\\x7F]) # First letter\n(?:[-a-zA-Z0-9_] | [^\\x00-\\x7F] # Remainder of identifier\n |\\\\(?:[0-9a-fA-F]{1,6}|.)\n)*",
"name": "variable.css"
},
{
"include": "#selector"
},
{
"begin": "(?<![-a-zA-Z])(?=[-a-zA-Z])",
"end": "$|(?![-a-zA-Z])",
Expand Down Expand Up @@ -1564,7 +1570,7 @@
]
},
"selector": {
"begin": "(?x)\n(?=\n (?:\\|)? # Possible anonymous namespace prefix\n (?:\n [-\\[:.*\\#a-zA-Z_] # Valid selector character\n |\n [^\\x00-\\x7F] # Which can include non-ASCII symbols\n |\n \\\\ # Or an escape sequence\n (?:[0-9a-fA-F]{1,6}|.)\n )\n)",
"begin": "(?x)\n(?=\n (?:\\|)? # Possible anonymous namespace prefix\n (?:\n [-\\[:.*\\#a-zA-Z_] # Valid selector character\n |\n [^\\x00-\\x7F] # Which can include non-ASCII symbols\n |\n \\\\ # Or an escape sequence\n (?:[0-9a-fA-F]{1,6}|.)\n )\n)\n(?!\n [^{]*; # A semicolon before any opening brace denotes a declaration, not a nested rule\n |\n [^{]*} # A closing brace before any opening brace also denotes a declaration\n |\n [\\w-]*:+\\s # A colon followed by whitespace right here denotes a property, not a selector\n)",
"end": "(?=\\s*[/@{)])",
"name": "meta.selector.css",
"patterns": [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#a {
.b {
gap: 1px;
}
--c: 1px;
}

#d {
--e: 1px;
.f {
gap: 1px;
}
}

.parent {
&:hover {
color: red;
}
--after-nested-pseudo: 1px;
}

@media (min-width: 100px) {
.g {
color: blue;
}
}
Loading