Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit d935b77

Browse files
author
Aaron Leung
committed
Slightly nicer formatting for the section comments.
1 parent d81158d commit d935b77

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

functions.cpp

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ namespace Sass {
6666
throw Error(Error::evaluation, path, line, message);
6767
}
6868

69+
////////////////////////////////////////////////////////////////////////
6970
// RGB Functions ///////////////////////////////////////////////////////
71+
////////////////////////////////////////////////////////////////////////
7072

7173
extern Signature rgb_sig = "rgb($red, $green, $blue)";
7274
Node rgb(const Node parameter_names, Environment& bindings, Node_Factory& new_Node, string& path, size_t line) {
@@ -168,7 +170,9 @@ namespace Sass {
168170
return mixed;
169171
}
170172

173+
////////////////////////////////////////////////////////////////////////
171174
// HSL Functions ///////////////////////////////////////////////////////
175+
////////////////////////////////////////////////////////////////////////
172176

173177
// RGB to HSL helper function so we can do hsl operations.
174178
// (taken from http://www.easyrgb.com)
@@ -450,7 +454,9 @@ namespace Sass {
450454
orig[3].numeric_value());
451455
}
452456

457+
////////////////////////////////////////////////////////////////////////
453458
// Opacity Functions ///////////////////////////////////////////////////
459+
////////////////////////////////////////////////////////////////////////
454460

455461
extern Signature alpha_sig = "alpha($color)";
456462
Node alpha(const Node parameter_names, Environment& bindings, Node_Factory& new_Node, string& path, size_t line) {
@@ -534,7 +540,9 @@ namespace Sass {
534540
alpha);
535541
}
536542

543+
////////////////////////////////////////////////////////////////////////
537544
// Other Color Functions ///////////////////////////////////////////////
545+
////////////////////////////////////////////////////////////////////////
538546

539547
extern Signature adjust_color_sig = "adjust-color($color, $red: false, $green: false, $blue: false, $hue: false, $saturation: false, $lightness: false, $alpha: false)";
540548
Node adjust_color(const Node parameter_names, Environment& bindings, Node_Factory& new_Node, string& path, size_t line) {
@@ -658,7 +666,9 @@ namespace Sass {
658666
return Node();
659667
}
660668

669+
////////////////////////////////////////////////////////////////////////
661670
// String Functions ////////////////////////////////////////////////////
671+
////////////////////////////////////////////////////////////////////////
662672

663673
extern Signature unquote_sig = "unquote($string)";
664674
Node unquote(const Node parameter_names, Environment& bindings, Node_Factory& new_Node, string& path, size_t line) {
@@ -694,7 +704,9 @@ namespace Sass {
694704
return orig;
695705
}
696706

707+
////////////////////////////////////////////////////////////////////////
697708
// Number Functions ////////////////////////////////////////////////////
709+
////////////////////////////////////////////////////////////////////////
698710

699711
extern Signature percentage_sig = "percentage($value)";
700712
Node percentage(const Node parameter_names, Environment& bindings, Node_Factory& new_Node, string& path, size_t line) {
@@ -821,7 +833,9 @@ namespace Sass {
821833
return Node();
822834
}
823835

836+
////////////////////////////////////////////////////////////////////////
824837
// List Functions //////////////////////////////////////////////////////
838+
////////////////////////////////////////////////////////////////////////
825839

826840
extern Signature length_sig = "length($list)";
827841
Node length(const Node parameter_names, Environment& bindings, Node_Factory& new_Node, string& path, size_t line) {
@@ -960,7 +974,9 @@ namespace Sass {
960974
return new_list.size() ? new_list : new_Node(Node::nil, path, line, 0);
961975
}
962976

977+
////////////////////////////////////////////////////////////////////////
963978
// Introspection Functions /////////////////////////////////////////////
979+
////////////////////////////////////////////////////////////////////////
964980

965981
extern Signature type_of_sig = "type-of($value)";
966982
Node type_of(const Node parameter_names, Environment& bindings, Node_Factory& new_Node, string& path, size_t line) {
@@ -1074,7 +1090,10 @@ namespace Sass {
10741090
return new_Node(Node::boolean, path, line, false);
10751091
}
10761092

1093+
////////////////////////////////////////////////////////////////////////
10771094
// Boolean Functions ///////////////////////////////////////////////////
1095+
////////////////////////////////////////////////////////////////////////
1096+
10781097
extern Signature not_sig = "not($value)";
10791098
Node not_impl(const Node parameter_names, Environment& bindings, Node_Factory& new_Node, string& path, size_t line) {
10801099
Node val(bindings[parameter_names[0].token()]);

0 commit comments

Comments
 (0)