JuliaLang / JuliaLang/JuliaSyntax.jl

Separate out "trivia" from "notation"

Open
#564 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
Julia
Stars
293
Forks
50
PR merge metrics
No merged PRs in 30d

Description

The usual definition of "trivia" are "things that can be removed from the input without affecting the semantics of the output of the parse" and includes whitespace, comments (and depending on who you ask, docstrings). However, when JuliaSyntax talks about "trivia" this includes everything that does not end up in the final AST and includes fixed keywords, notation, etc. We should separate these categories so that downstream users can make use of this information. In some circumstances, it might make sense to print code without trivia (e.g. when space constrained), or to change the highlighting of trivial, but keeping notation intact.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.