Merge branch 'main' into improve-repl

This commit is contained in:
Cai Bingjun 2023-02-05 14:07:08 +08:00 committed by GitHub
commit c22cd79a89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 574 additions and 66 deletions

View file

@ -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

View file

@ -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", "")