Skip to content

Commit ea716d7

Browse files
committed
Convert cson to json file
1 parent d9745d9 commit ea716d7

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

syntaxes/css.tmLanguage.json

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
],
88
"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|:|$)",
99
"patterns": [
10-
{
11-
"include": "#commas"
12-
},
1310
{
1411
"include": "#comment-block"
1512
},
@@ -509,9 +506,6 @@
509506
},
510507
"name": "meta.at-rule.supports.body.css",
511508
"patterns": [
512-
{
513-
"include": "#rule-list-innards"
514-
},
515509
{
516510
"include": "$self"
517511
}
@@ -870,7 +864,7 @@
870864
]
871865
},
872866
{
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)(\\()",
874868
"beginCaptures": {
875869
"1": {
876870
"name": "support.function.misc.css"
@@ -1587,14 +1581,19 @@
15871581
{
15881582
"include": "#selector"
15891583
},
1584+
{
1585+
"begin": "(?<![-a-zA-Z])(?=[-a-zA-Z])",
1586+
"end": "$|(?![-a-zA-Z])",
1587+
"name": "meta.property-name.css"
1588+
},
15901589
{
15911590
"begin": "(:)\\s*",
15921591
"beginCaptures": {
15931592
"1": {
15941593
"name": "punctuation.separator.key-value.css"
15951594
}
15961595
},
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*(?=}|\\))",
15981597
"endCaptures": {
15991598
"1": {
16001599
"name": "punctuation.terminator.rule.css"
@@ -1613,11 +1612,6 @@
16131612
{
16141613
"match": ";",
16151614
"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"
16211615
}
16221616
]
16231617
},
@@ -1814,7 +1808,7 @@
18141808
"shared-names": {
18151809
"patterns": [
18161810
{
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)",
18181812
"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)",
18191813
"patterns": [
18201814
{

0 commit comments

Comments
 (0)