Skip to content

Commit

Permalink
Add JuliaSyntax-0.4 as a compatible version (#323)
Browse files Browse the repository at this point in the history
* Add JuliaSyntax-0.4 as a compatible version

* Fix indentation with custom prompts

Fixes #315
  • Loading branch information
c42f authored May 15, 2023
1 parent 243ef61 commit be16ae2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "OhMyREPL"
uuid = "5fb14364-9ced-5910-84b2-373655c76a03"
version = "0.5.20"
version = "0.5.21"

[deps]
Crayons = "a8cc5b0e-0ffa-5ad4-8c14-923d3ee1735f"
Expand All @@ -13,7 +13,7 @@ REPL = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"

[compat]
Crayons = "1, 2, 3, 4"
JuliaSyntax = "0.3.3"
JuliaSyntax = "0.3.3, 0.4"
JLFzf = "^0.1.1"
julia = "1.6"

Expand Down
2 changes: 1 addition & 1 deletion src/repl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function rewrite_with_ANSI(s, cursormove::Bool = false)
str = read(buffer(s), String)
tokens = tokenize(str)
apply_passes!(PASS_HANDLER, tokens, str, cursoridx, cursormove)
untokenize_with_ANSI(outbuf, PASS_HANDLER, tokens, str)
untokenize_with_ANSI(outbuf, PASS_HANDLER, tokens, str, l)

# Reset the buffer since the Lexer messed with it (maybe the Lexer should reset it on done)
seek(buffer(s), p)
Expand Down

0 comments on commit be16ae2

Please sign in to comment.