diff --git a/src/lexers/julia.jl b/src/lexers/julia.jl index 37118a7..50fc879 100644 --- a/src/lexers/julia.jl +++ b/src/lexers/julia.jl @@ -66,9 +66,8 @@ end julia_is_triple_string_macro(ctx::Context) = julia_is_string_macro(ctx, 3) # Julia Script Lexer. - @lexer JuliaLexer let - keywords = [kw.keyword for kw in REPL.REPLCompletions.complete_keyword("")] + keywords = copy(REPL.REPLCompletions.sorted_keywords) char_regex = [ raw"'(\\.|\\[0-7]{1,3}|\\x[a-fA-F0-9]{1,3}|", raw"\\u[a-fA-F0-9]{1,4}|\\U[a-fA-F0-9]{1,6}|", diff --git a/test/runtests.jl b/test/runtests.jl index a016f04..1d9a6c1 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -337,5 +337,5 @@ end # Hack to make the test in External actually usable... using Pkg Pkg.activate(joinpath(@__DIR__, "External")) -Pkg.develop("Highlights") +Pkg.develop(Pkg.PackageSpec(;path=dirname(@__DIR__))) using External