LanguageServer.jl icon indicating copy to clipboard operation
LanguageServer.jl copied to clipboard

get_expr issues

Open pfitzseb opened this issue 5 years ago • 0 comments

julia> cst = CSTParser.parse("g(x;y)=x+y")
  1:10  BinaryOpCall
  1:6    Call
  1:1     g
  2:2     (
  3:4     x
  5:5     Parameters
  5:5      y
  6:6     )
  7:7    OP: EQ
  8:10   Block
  8:10    BinaryOpCall
  8:8      x
  9:9      OP: PLUS
 10:10     y

julia> LanguageServer.get_expr(cst, 5)
  1:1   y

julia> LanguageServer.get_expr1(cst, 5)
  1:1   )

julia> LanguageServer.get_expr1(cst, 4)
  1:1   )

This results in weird hovers like this one: image

pfitzseb avatar Nov 30 '20 09:11 pfitzseb