Skip to content
This repository was archived by the owner on Jun 14, 2019. It is now read-only.

Commit e88109e

Browse files
author
Aaron Leung
committed
Allowing 'compact' to take up to 12 arguments.
1 parent 27d14d5 commit e88109e

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

context.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ namespace Sass {
138138
register_function(compact_8_descriptor, compact);
139139
register_function(compact_9_descriptor, compact);
140140
register_function(compact_10_descriptor, compact);
141+
register_function(compact_11_descriptor, compact);
142+
register_function(compact_12_descriptor, compact);
141143
// Introspection Functions
142144
register_function(type_of_descriptor, type_of);
143145
register_function(unit_descriptor, unit);

functions.cpp

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -594,19 +594,26 @@ namespace Sass {
594594
{ "compact 5", "$arg1", "$arg2", "$arg3", "$arg4", "$arg5", 0 };
595595
Function_Descriptor compact_6_descriptor =
596596
{ "compact 6", "$arg1", "$arg2", "$arg3", "$arg4", "$arg5",
597-
"$arg6", 0 };
597+
"$arg6", 0 };
598598
Function_Descriptor compact_7_descriptor =
599599
{ "compact 7", "$arg1", "$arg2", "$arg3", "$arg4", "$arg5",
600-
"$arg6", "$arg7", 0 };
600+
"$arg6", "$arg7", 0 };
601601
Function_Descriptor compact_8_descriptor =
602602
{ "compact 8", "$arg1", "$arg2", "$arg3", "$arg4", "$arg5",
603-
"$arg6", "$arg7", "$arg8", 0 };
603+
"$arg6", "$arg7", "$arg8", 0 };
604604
Function_Descriptor compact_9_descriptor =
605605
{ "compact 9", "$arg1", "$arg2", "$arg3", "$arg4", "$arg5",
606-
"$arg6", "$arg7", "$arg8", "$arg9", 0 };
606+
"$arg6", "$arg7", "$arg8", "$arg9", 0 };
607607
Function_Descriptor compact_10_descriptor =
608608
{ "compact 10", "$arg1", "$arg2", "$arg3", "$arg4", "$arg5",
609-
"$arg6", "$arg7", "$arg8", "$arg9", "$arg10", 0 };
609+
"$arg6", "$arg7", "$arg8", "$arg9", "$arg10", 0 };
610+
Function_Descriptor compact_11_descriptor =
611+
{ "compact 11", "$arg1", "$arg2", "$arg3", "$arg4", "$arg5", "$arg6",
612+
"$arg7", "$arg8", "$arg9", "$arg10", "$arg11", 0 };
613+
Function_Descriptor compact_12_descriptor =
614+
{ "compact 12", "$arg1", "$arg2", "$arg3", "$arg4", "$arg5", "arg6",
615+
"$arg7", "$arg8", "$arg9", "$arg10", "$arg11", "$arg12", 0 };
616+
610617

611618

612619
// Introspection Functions /////////////////////////////////////////////

functions.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ namespace Sass {
173173
extern Function_Descriptor compact_8_descriptor;
174174
extern Function_Descriptor compact_9_descriptor;
175175
extern Function_Descriptor compact_10_descriptor;
176+
extern Function_Descriptor compact_11_descriptor;
177+
extern Function_Descriptor compact_12_descriptor;
176178
Node compact(const Node parameters, map<Token, Node>& bindings, Node_Factory& new_Node);
177179

178180
// Introspection Functions /////////////////////////////////////////////

0 commit comments

Comments
 (0)