mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-28 04:09:05 +00:00
Merge branch 'main' into improve-repl
This commit is contained in:
commit
c22cd79a89
16 changed files with 574 additions and 66 deletions
|
@ -2,7 +2,7 @@
|
|||
name = "els"
|
||||
description = "An Erg compiler frontend for IDEs, implements LSP."
|
||||
documentation = "http://docs.rs/els"
|
||||
version = "0.1.15"
|
||||
version = "0.1.16-nightly.0"
|
||||
authors.workspace = true
|
||||
license.workspace = true
|
||||
edition.workspace = true
|
||||
|
|
|
@ -296,10 +296,13 @@ impl ScriptGenerator {
|
|||
|
||||
// TODO: more smart way
|
||||
fn replace_import(src: &str) -> String {
|
||||
src.replace("from _erg_nat import Nat", "")
|
||||
src.replace("from _erg_nat import NatMut", "")
|
||||
.replace("from _erg_nat import Nat", "")
|
||||
.replace("from _erg_int import IntMut", "")
|
||||
.replace("from _erg_int import Int", "")
|
||||
.replace("from _erg_bool import BoolMut", "")
|
||||
.replace("from _erg_bool import Bool", "")
|
||||
.replace("from _erg_str import StrMut", "")
|
||||
.replace("from _erg_str import Str", "")
|
||||
.replace("from _erg_array import Array", "")
|
||||
.replace("from _erg_range import Range", "")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue