quantified-uncertainty / squiggle

An estimation language
https://squiggle-language.com
MIT License
150 stars 23 forks source link

Color scheme breaks in a certain case #3071

Closed OAGr closed 5 months ago

OAGr commented 6 months ago

Description of suggestion or shortcoming:

Here, the description of the doc and name on the bottom are red. They should be gray.

image

Several edits to asLongAs will make it gray.

https://www.squiggle-language.com/playground?v=0.9.3#code=eNpVj8FKBEEMRH%2Bl7MMyexFk9ySMKOtF8BNyCTMZbZxOxu4MKMv%2BuxkUZC%2BhKq8gqXMaZeJ19pONku6TfC1WHdxeTd%2BeWsd79DiTAlVaxMLdod%2FGbocDbnocr%2BDh35FeSEkfRxu6bUvpxaVgsHmWwVuIspiKhvR3dhT%2BEKwL%2BJe07AJpnguHyFOEBEuVKp9r3mADV0ERv6VEuo9LykU6SsFKd5WMEg94zoNnU67flCL913Qy294%2BpssPc5pa2w%3D%3D

export asLongAs(a) = {
  result = 1 == 1 && 3 != 4
  result = 3
  result
}

@doc(
  "Item collects components that make up a composite estimate if the prerequisites are met."
)
@name("item(prerequisites) => Dictionary")
export foo = 34