Skip to content

Commit 61b602f

Browse files
committed
Add #arithmetic-operators for function syntax
1 parent 7faba5c commit 61b602f

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

syntaxes/css.tmLanguage.json

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
}
3232
],
3333
"repository": {
34+
"arithmetic-operators": {
35+
"match": "[*/]|(?<=\\s|^)[-+](?=\\s|$)",
36+
"name": "keyword.operator.arithmetic.css"
37+
},
3438
"at-rules": {
3539
"patterns": [
3640
{
@@ -846,10 +850,9 @@
846850
},
847851
"name": "meta.function.calc.css",
848852
"patterns": [
849-
{
850-
"match": "[*/]|(?<=\\s|^)[-+](?=\\s|$)",
851-
"name": "keyword.operator.arithmetic.css"
852-
},
853+
{
854+
"include": "#arithmetic-operators"
855+
},
853856
{
854857
"include": "#property-values"
855858
},
@@ -975,6 +978,9 @@
975978
"match": "(?i)(?<=[,\\s\"]|\\*/|^)\\d+x(?=[\\s,\"')]|/\\*|$)",
976979
"name": "constant.numeric.other.density.css"
977980
},
981+
{
982+
"include": "#arithmetic-operators"
983+
},
978984
{
979985
"include": "#property-values"
980986
},
@@ -1108,10 +1114,9 @@
11081114
}
11091115
},
11101116
"patterns": [
1111-
{
1112-
"match": "[*/]|(?<=\\s|^)[-+](?=\\s|$)",
1113-
"name": "keyword.operator.arithmetic.css"
1114-
},
1117+
{
1118+
"include": "#arithmetic-operators"
1119+
},
11151120
{
11161121
"include": "#property-values"
11171122
},

0 commit comments

Comments
 (0)