Skip to content

Improve syntax highlighting and add syntax highlighting based on typecheck result #170

Open
@fendor

Description

@fendor

Syntax highlighting is currently only based on the lexer and parse results.
Even then, we are not highlighting to the best of our knowledge, take:

Image

In this context, we know that Tree a must both be types, but we are highlighting them as values.

Further, we should provide syntax highlighting based on the typecheck result of the AST which could allow us to provide more accurate highlighting in at least the following cases:

  • selectors
  • functions vs data constructors
  • parameters
  • assumes

Metadata

Metadata

Assignees

Labels

jl4core language syntax, semantics, and toolchain

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions