ext/libsass/src/emitter.hpp in sassc-1.11.4 vs ext/libsass/src/emitter.hpp in sassc-1.12.0

- old
+ new

@@ -35,13 +35,16 @@ struct Sass_Output_Options& opt; size_t indentation; size_t scheduled_space; size_t scheduled_linefeed; bool scheduled_delimiter; + AST_Node_Ptr scheduled_crutch; AST_Node_Ptr scheduled_mapping; public: + // output strings different in custom css properties + bool in_custom_property; // output strings different in comments bool in_comment; // selector list does not get linefeeds bool in_wrapped; // lists always get a space after delimiter @@ -64,14 +67,18 @@ // prepend some text or token to the buffer void prepend_string(const std::string& text); void prepend_output(const OutputBuffer& out); // append some text or token to the buffer void append_string(const std::string& text); + // append a single character to buffer + void append_char(const char chr); // append some white-space only text void append_wspace(const std::string& text); // append some text or token to the buffer // this adds source-mappings for node start and end void append_token(const std::string& text, const AST_Node_Ptr node); + // query last appended character + char last_char(); public: // syntax sugar void append_indentation(); void append_optional_space(void); void append_mandatory_space(void);