File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2849,16 +2849,18 @@ void CConfig::SetConfig_Parsing(char case_filename[MAX_STRING_SIZE]) {
28492849 throw (1 );
28502850 }
28512851
2852- PrintingToolbox::trim (text_line);
2852+ PrintingToolbox::trim (text_line);
28532853
2854-
2855- /* --- Check if there is a line continuation character at the end of the current line.
2856- * If yes, read until there is a line without one or a comment. If there is a statement after a cont. char
2854+ /* --- Check if there is a line continuation character at the
2855+ * end of the current line or somewhere in between (the rest is ignored then).
2856+ * If yes, read until there is a line without one or an empty line.
2857+ * If there is a statement after a cont. char
28572858 * throw an error. ---*/
28582859
2859- while (text_line.back () == ' \\ ' ){
2860+ while (text_line.back () == ' \\ ' ||
2861+ (PrintingToolbox::split (text_line, ' \\ ' ).size () > 1 )){
28602862 string tmp;
2861- getline (case_file , tmp);
2863+ getline (config_buffer , tmp);
28622864 line_count++;
28632865 if (tmp.find_first_of (' =' ) != string::npos){
28642866 errorString.append (" Line " + to_string (line_count) + " : Statement found after continuation character.\n " );
You can’t perform that action at this time.
0 commit comments