Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken REPL syntax highlighting of multi-line inputs #282

Open
adrhill opened this issue Jun 11, 2024 · 0 comments
Open

Broken REPL syntax highlighting of multi-line inputs #282

adrhill opened this issue Jun 11, 2024 · 0 comments

Comments

@adrhill
Copy link

adrhill commented Jun 11, 2024

The julia-console.cson grammar is now in use for syntax highlighting of Julia-REPL code blocks on GitHub:

julia> foo(x) = 2*x
foo (generic function with 1 method)

julia> foo(2)
4

julia> rand(3, 3)
3×3 Matrix{Float64}:
 0.0584225  0.130169  0.71839
 0.374485   0.915134  0.546367
 0.757699   0.195205  0.549311
 
julia> d = Dict(1 => 'a', 2 => 'b')
Dict{Int64, Char} with 2 entries:
  2 => 'b'
  1 => 'a'

However, multi-line input isn't highlighted correctly, only covering the first line:

julia> function bar(x)
         return x
       end
bar (generic function with 1 method)


julia> d = Dict(
         1 => 'a',
         2 => 'b',
       )
Dict{Int64, Char} with 2 entries:
  2 => 'b'
  1 => 'a'

CC @giordano.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant