Skip to content

Commit f85aadc

Browse files
committed
Add #function-nesting
1 parent 159a043 commit f85aadc

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/vscode-css/grammars/css.cson

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -826,6 +826,9 @@
826826
{
827827
'include': '#property-values'
828828
}
829+
{
830+
'include': '#function-nesting'
831+
}
829832
]
830833
}
831834
# Colours
@@ -939,6 +942,7 @@
939942
'match': '(?i)(?<=[,\\s"]|\\*/|^)\\d+x(?=[\\s,"\')]|/\\*|$)'
940943
'name': 'constant.numeric.other.density.css'
941944
}
945+
{
942946
'include': '#arithmetic-operators'
943947
}
944948
{
@@ -1054,6 +1058,26 @@
10541058
]
10551059
}
10561060
]
1061+
'function-nesting':
1062+
'begin': '\\('
1063+
'beginCaptures':
1064+
'0':
1065+
'name': 'punctuation.definition.function.begin.bracket.round.css'
1066+
'end': '\\)'
1067+
'endCaptures':
1068+
'0':
1069+
'name': 'punctuation.definition.function.end.bracket.round.css'
1070+
'patterns': [
1071+
{
1072+
'include': '#arithmetic-operators'
1073+
}
1074+
{
1075+
'include': '#property-values'
1076+
},
1077+
{
1078+
'include': '#function-nesting'
1079+
}
1080+
]
10571081
'functional-pseudo-classes':
10581082
'patterns': [
10591083
{

0 commit comments

Comments
 (0)