JuliaEditorSupport / JuliaEditorSupport/atom-language-julia

Broken REPL syntax highlighting of multi-line inputs

Open
#282 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
55
Forks
39
Avg merge
5d 23h
Merged PRs (30d)
2

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting grammars/julia-console.cson and compare its handling of single-line versus multi-line Julia-REPL inputs using the examples in the issue. Verify how GitHub renders Julia-repl blocks, then ensure function and dictionary inputs remain highlighted across continuation lines and their output. Confirm the rendered examples match the intended highlighting.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.