mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
re-use header parser state when parsing the rest of the file
This commit is contained in:
parent
84d036bd91
commit
24fcafa1c4
2 changed files with 8 additions and 7 deletions
|
@ -40,7 +40,7 @@ pub fn gen_from_mono_module(
|
|||
|
||||
if let Some((_, header_src)) = loaded.header_sources.get(&home) {
|
||||
src_lines.extend(header_src.split('\n'));
|
||||
src_lines.extend(src.split('\n').skip(1));
|
||||
src_lines.extend(src.split('\n'));
|
||||
} else {
|
||||
src_lines.extend(src.split('\n'));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue