Skip to content

Commit

Permalink
周辺のテキストとして行全体を返すように修正した
Browse files Browse the repository at this point in the history
  • Loading branch information
noya2ruler committed Jun 4, 2024
1 parent 5fd19b1 commit 7007d21
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/reader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ struct Reader {
if (row > 0){
ret += lines[row-1] + "\n";
}
ret += lines[row].substr(0,col);
ret += lines[row];
return ret;
}
};
Expand Down
2 changes: 1 addition & 1 deletion src/syntax/EnumerateBlock.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ struct EnumerateBlockSyntax : public BlockSyntax {
// depth has decreased and the difference is multiple of 3
if (depth < current && (current - depth) % 3 == 0) return true;
// ambiguous enum definition detected
std::cerr << "Warning near '" << read.near() << "'" << std::endl;
std::cerr << "Warning: ambiguous enum\n ... \n" << read.near() << "\n^^^ parsing line" << std::endl;
std::cerr << "indent width must be 3. this line is considered as raw text." << std::endl;
return false;
}()){
Expand Down
2 changes: 1 addition & 1 deletion src/syntax/ListBlock.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ struct ListBlockSyntax : public BlockSyntax {
// depth has decreased and the difference is even
if (depth < current && (current - depth) % 2 == 0) return true;
// ambiguous list definition detected
std::cerr << "Warning near '" << read.near() << "'" << std::endl;
std::cerr << "Warning: ambiguous list\n ... \n" << read.near() << "\n^^^ parsing line" << std::endl;
std::cerr << "indent width must be 2. this line is considered as raw text." << std::endl;
return false;
}()){
Expand Down

0 comments on commit 7007d21

Please sign in to comment.