| 109 | } |
| 110 | |
| 111 | std::string lua_format(std::istream& is, const Config& config) { |
| 112 | std::ostringstream os; |
| 113 | os << is.rdbuf(); |
| 114 | std::string original = os.str(); |
| 115 | ANTLRInputStream input(original); |
| 116 | std::string formatted = __format(input, config); |
| 117 | formatted = handleLineSeparator(original, formatted, config); |
| 118 | return resetContentInDisableFormatBlocks(original, formatted); |
| 119 | } |
| 120 | |
| 121 | std::string lua_format(const std::string& str, const Config& config) { |
| 122 | ANTLRInputStream input(str); |
no test coverage detected