JuliaEditorSupport / JuliaEditorSupport/atom-language-julia

Misleading coloring of "end" in let-block inside brackets

Open
#140 1 comment 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

Example:

# look at "end" color
Float64[let; println("Adding float"); rand(1.0:10.0); end]
# while it should highlight "end" like this
let; println("Adding float"); rand(1.0:10.0); end

This highlights end as if it was the "end" meaning index of the last element.
Subtle thing, though.

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

Reproduce the supplied Julia examples in Atom and compare how end is highlighted inside the bracketed let expression versus the standalone block. Inspect the Julia grammar rules responsible for end; done means the block terminator receives the same highlighting in both examples without changing indexing 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
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.