mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 02:39:20 +00:00
Update register.rs
This commit is contained in:
parent
d03dcbd392
commit
7f2c0301e2
1 changed files with 1 additions and 1 deletions
|
@ -1884,7 +1884,7 @@ impl Context {
|
|||
let mod_ctx = ModuleContext::new(self.clone(), dict! {});
|
||||
let mut builder = HIRBuilder::new_with_ctx(mod_ctx);
|
||||
let src = Input::file(path.to_path_buf()).read();
|
||||
let mode = if path.to_string_lossy().ends_with(".d.er") {
|
||||
let mode = if path.to_string_lossy().ends_with("d.er") {
|
||||
"declare"
|
||||
} else {
|
||||
"exec"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue