mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:07:35 +00:00
LibCpp: Support initializing the lexer with a "start line"
This commit is contained in:
parent
5fda8a6c36
commit
bf7262681e
2 changed files with 4 additions and 2 deletions
|
@ -12,8 +12,10 @@
|
|||
|
||||
namespace Cpp {
|
||||
|
||||
Lexer::Lexer(StringView const& input)
|
||||
Lexer::Lexer(StringView const& input, size_t start_line)
|
||||
: m_input(input)
|
||||
, m_previous_position { start_line, 0 }
|
||||
, m_position { start_line, 0 }
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue