JuliaEditorSupport / JuliaEditorSupport/atom-language-julia

Highlight function after and the "|>" symbol itself

Open
#154 5 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hi,

I am using the "|>" symbol heavily in my coding, unfortunately neither the symbol itself nor the function that follows it is highlighted which makes reading the code a bit more difficult.

Generally the syntax of using the "|>" symbol is as following:

"variable |> function". This is equal to "function( variable )", only expressed differently.
It would be really nice if these were colour coded as other function, with a separate colour for the "|>" symbol.

Unfortunately I am not familiar with coding of the colours for the text editor, so I am a bit overwhelmed when looking at the file in the package folder.

Nevertheless, it would be a useful thing tho have.

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 the package folder's grammar files and the existing rules for functions and operators. Confirm how Julia's |> syntax is represented, then update the highlighting so the symbol and following function are colored; verify the result in Atom, VS Code, or GitHub syntax highlighting.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, julia
Domain
devtools
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.