diff options
Diffstat (limited to 'src/yuescript/yue_parser.cpp')
| -rw-r--r-- | src/yuescript/yue_parser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yuescript/yue_parser.cpp b/src/yuescript/yue_parser.cpp index eebc676..2e21a52 100644 --- a/src/yuescript/yue_parser.cpp +++ b/src/yuescript/yue_parser.cpp | |||
| @@ -645,7 +645,7 @@ YueParser::YueParser() { | |||
| 645 | YAMLLine = check_indent_match >> Seperator >> +YAMLLineContent | | 645 | YAMLLine = check_indent_match >> Seperator >> +YAMLLineContent | |
| 646 | advance_match >> Seperator >> ensure(+YAMLLineContent, pop_indent) | | 646 | advance_match >> Seperator >> ensure(+YAMLLineContent, pop_indent) | |
| 647 | Seperator >> *set(" \t") >> and_(line_break); | 647 | Seperator >> *set(" \t") >> and_(line_break); |
| 648 | YAMLMultiline = '|' >> Seperator >> +space_break >> advance_match >> ensure(YAMLLine >> *(*set(" \t") >> line_break >> YAMLLine), pop_indent); | 648 | YAMLMultiline = '|' >> space >> Seperator >> +(*set(" \t") >> line_break) >> advance_match >> ensure(YAMLLine >> *(*set(" \t") >> line_break >> YAMLLine), pop_indent); |
| 649 | 649 | ||
| 650 | String = DoubleString | SingleString | LuaString | YAMLMultiline; | 650 | String = DoubleString | SingleString | LuaString | YAMLMultiline; |
| 651 | 651 | ||
| @@ -1185,7 +1185,7 @@ void trim(std::string& str) { | |||
| 1185 | str.erase(str.find_last_not_of(" \t\r\n") + 1); | 1185 | str.erase(str.find_last_not_of(" \t\r\n") + 1); |
| 1186 | } | 1186 | } |
| 1187 | 1187 | ||
| 1188 | std::string toLuaString(const std::string& input) { | 1188 | std::string toLuaDoubleString(const std::string& input) { |
| 1189 | std::string luaStr = "\""; | 1189 | std::string luaStr = "\""; |
| 1190 | for (char c : input) { | 1190 | for (char c : input) { |
| 1191 | switch (c) { | 1191 | switch (c) { |
