|
7 | 7 | ],
|
8 | 8 | "firstLineMatch": "(?xi)\n# Emacs modeline\n-\\*-(?:\\s*(?=[^:;\\s]+\\s*-\\*-)|(?:.*?[;\\s]|(?<=-\\*-))mode\\s*:\\s*)\n css\n(?=[\\s;]|(?<![-*])-\\*-).*?-\\*-\n|\n# Vim modeline\n(?:(?:\\s|^)vi(?:m[<=>]?\\d+|m)?|\\sex)(?=:(?=\\s*set?\\s[^\\n:]+:)|:(?!\\s*set?\\s))(?:(?:\\s|\\s*:\\s*)\\w*(?:\\s*=(?:[^\\n\\\\\\s]|\\\\.)*)?)*[\\s:](?:filetype|ft|syntax)\\s*=\n css\n(?=\\s|:|$)",
|
9 | 9 | "patterns": [
|
10 |
| - { |
11 |
| - "include": "#commas" |
12 |
| - }, |
13 | 10 | {
|
14 | 11 | "include": "#comment-block"
|
15 | 12 | },
|
|
509 | 506 | },
|
510 | 507 | "name": "meta.at-rule.supports.body.css",
|
511 | 508 | "patterns": [
|
512 |
| - { |
513 |
| - "include": "#rule-list-innards" |
514 |
| - }, |
515 | 509 | {
|
516 | 510 | "include": "$self"
|
517 | 511 | }
|
|
870 | 864 | ]
|
871 | 865 | },
|
872 | 866 | {
|
873 |
| - "begin": "(?i)(?<![\\w-])(rgba?|rgb|hsla?|hsl|hwb|lab|oklab|lch|oklch|color|light-dark)(\\()", |
| 867 | + "begin": "(?i)(?<![\\w-])(rgba?|rgb|hsla?|hsl|hwb|lab|oklab|lch|oklch|color)(\\()", |
874 | 868 | "beginCaptures": {
|
875 | 869 | "1": {
|
876 | 870 | "name": "support.function.misc.css"
|
|
1587 | 1581 | {
|
1588 | 1582 | "include": "#selector"
|
1589 | 1583 | },
|
| 1584 | + { |
| 1585 | + "begin": "(?<![-a-zA-Z])(?=[-a-zA-Z])", |
| 1586 | + "end": "$|(?![-a-zA-Z])", |
| 1587 | + "name": "meta.property-name.css" |
| 1588 | + }, |
1590 | 1589 | {
|
1591 | 1590 | "begin": "(:)\\s*",
|
1592 | 1591 | "beginCaptures": {
|
1593 | 1592 | "1": {
|
1594 | 1593 | "name": "punctuation.separator.key-value.css"
|
1595 | 1594 | }
|
1596 | 1595 | },
|
1597 |
| - "end": "(?x)\n\\s* # Optional whitespaces, followed by:\n(?:\n (;) # A semicolon\n | (?=\n \\} # OR a closing curly brace\n | \\) # OR a closing parenthesis\n | (?: # OR an opening curly brace not enclosed by quotes\n [^\\'\\\"]?\n \\{\n [^\\'\\\"]?\n )\n )\n)", |
| 1596 | + "end": "\\s*(;)|\\s*(?=}|\\))", |
1598 | 1597 | "endCaptures": {
|
1599 | 1598 | "1": {
|
1600 | 1599 | "name": "punctuation.terminator.rule.css"
|
|
1613 | 1612 | {
|
1614 | 1613 | "match": ";",
|
1615 | 1614 | "name": "punctuation.terminator.rule.css"
|
1616 |
| - }, |
1617 |
| - { |
1618 |
| - "begin": "(?<![-a-zA-Z])(?=[-a-zA-Z])", |
1619 |
| - "end": "$|(?![-a-zA-Z])", |
1620 |
| - "name": "meta.property-name.css" |
1621 | 1615 | }
|
1622 | 1616 | ]
|
1623 | 1617 | },
|
|
1814 | 1808 | "shared-names": {
|
1815 | 1809 | "patterns": [
|
1816 | 1810 | {
|
1817 |
| - "begin": "(?xi)\n# Selector match must be preceded by one of the following:\n(?<=\n ^ # Start of line\n | (^|[^\\:])\\s # Whitespace, after the start of a line or any character except a colon\n | [{}] # Opening or closing brace (condensed property list syntax)\n | \\*/ # Comment end\n | \\\\(?:[0-9a-fA-F]{1,6}|.) # Escape sequence\n)\n\n(?=\n # Selector must match:\n (?:\n # HTML elements\n header|image|label|marquee|mask|nav|ruby|shadow|span|style\n # SVG elements\n |color-profile|line|text\n )\n\n # Selector must NOT be followed by any any of the following:\n (?!\n .*; # Any characters followed by a semicolon (denotes a property)\n | [^{]*} # Any characters, except an opening brace, followed by a closing bracket (denotes a property)\n | - # A dash (denotes a property name)\n )\n)", |
| 1811 | + "begin": "(?xi)\n# Selector match must be preceded by one of the following:\n(?<=\n ^ # Start of line\n | (^|[^\\:])\\s # Whitespace, after the start of a line or any character except a colon\n | [{}] # Opening or closing brace (condensed property list syntax)\n | \\*/ # Comment end\n | \\\\(?:[0-9a-fA-F]{1,6}|.) # Escape sequence\n)\n\n(?=\n # Selector must match:\n (?:\n # HTML elements\n header|image|label|marquee|mask|nav|ruby|shadow|span|style\n # SVG elements\n |color-profile|line|text\n )\n\n # Selector must NOT be followed by any any of the following:\n (?!\n .*; # Any characters followed by a semicolon (denotes a property)\n | [^{]*} # Any characters, except an opening brace, followed by a closing bracket (denotes a property)\n | - # A dash (denotes a property name)\n | \\:\\s+ # A colon followed by whitespace (denotes a property name)\n )\n)", |
1818 | 1812 | "end": "(?xi)\n# Selector match ends with one of the following:\n(?=\n \\s # Whitespace\n | \\/\\* # Comment\n | , # Comma\n | { # Opening property list brace\n | $ # End of line\n)",
|
1819 | 1813 | "patterns": [
|
1820 | 1814 | {
|
|
0 commit comments