mirror of
https://git.sfja.dk/Mikkel/slige.git
synced 2025-01-18 09:46:30 +00:00
include col/line information
This commit is contained in:
parent
4363874cd2
commit
2d4879b69f
@ -253,7 +253,16 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
inline void step() { this->i += 1; }
|
||||
inline void step()
|
||||
{
|
||||
if (this->cur() == '\n') {
|
||||
this->col = 1;
|
||||
this->line += 1;
|
||||
} else {
|
||||
this->col += 1;
|
||||
}
|
||||
this->i += 1;
|
||||
}
|
||||
|
||||
inline auto intern_str(std::string val) -> size_t
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user