Skip to content

Squiggle VSCode extension comments break if function returns a call to another function. #891

@NunoSempere

Description

@NunoSempere

Here is a minimum viable example:

comment-bug

// Works
f(x) = {
    2*x
}

// Doesn't work
// i.e., comments after the definition don't get
// the correct syntax highlighting.

g(x) = {
    y = 1/x
    f(y)
}

// test comment which goes wrong.

h(x) = {
    y = f(x)
    y
}

// comments are displayed correctly

Metadata

Metadata

Assignees

Type

Projects

Status

🔖 Later

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions