Skip to content

Commit 159a043

Browse files
committed
Add arithmetic operators to functions
1 parent 7057054 commit 159a043

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/vscode-css/grammars/css.cson

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636
}
3737
]
3838
'repository':
39+
'arithmetic-operators':
40+
'match': '[*/]|(?<=\\s|^)[-+](?=\\s|$)'
41+
'name': 'keyword.operator.arithmetic.css'
3942
'at-rules':
4043
'patterns': [
4144
{
@@ -818,8 +821,7 @@
818821
'name': 'meta.function.calc.css'
819822
'patterns': [
820823
{
821-
'match': '[*/]|(?<=\\s|^)[-+](?=\\s|$)'
822-
'name': 'keyword.operator.arithmetic.css'
824+
'include': '#arithmetic-operators'
823825
}
824826
{
825827
'include': '#property-values'
@@ -936,6 +938,8 @@
936938
{
937939
'match': '(?i)(?<=[,\\s"]|\\*/|^)\\d+x(?=[\\s,"\')]|/\\*|$)'
938940
'name': 'constant.numeric.other.density.css'
941+
}
942+
'include': '#arithmetic-operators'
939943
}
940944
{
941945
'include': '#property-values'

0 commit comments

Comments
 (0)